Examples of Behaviour


Examples of net.sf.laja.parser.cdd.behaviour.Behaviour

     * Only used from the IDE to test the grammar!
     */
    public static void main(String[] args) throws IOException {
        CddParser parser = new CddParser();

        Behaviour behaviour = parser.parseBehaviour("C:/Source/IDEA/CSB/src/main/java/csb/domain/customer/Customer.java");
    }
View Full Code Here

Examples of net.sf.laja.parser.cdd.behaviour.Behaviour

        if (!result.success()) {
            return null;
        }

        BehaviourFactory behaviourFactory = (BehaviourFactory)parser.getFactory();
        Behaviour behaviour = behaviourFactory.getBehaviour();

        return behaviour;
    }
View Full Code Here

Examples of org.jboss.mbui.model.behaviour.Behaviour

    {
        final Resource<ResourceType> submitEvent = new Resource<ResourceType>(NAMESPACE, "submitName", Interaction);
        Resource<ResourceType> deviceRotation = new Resource<ResourceType>(NAMESPACE, "deviceRotation", Interaction);
        Resource<ResourceType> loadData = new Resource<ResourceType>(NAMESPACE, "loadData", Interaction);

        Behaviour behaviour = new TestProcedure(NAMESPACE, "onSubmitName")
        {
            {
                setInputs(submitEvent);
            }

        };

        assertTrue("Behaviour can be triggered by submitEvent", behaviour.doesConsume(submitEvent));

        assertFalse("Behaviour should not be triggered by deviceRotation", behaviour.doesConsume(deviceRotation));
        assertFalse("Behaviour should not be triggered by loadData", behaviour.doesConsume(loadData));

    }
View Full Code Here

Examples of org.sonatype.tests.http.server.api.Behaviour

    super(REPO);
  }

  protected ServerProvider buildServerProvider() {
    return Server.withPort(TestProperties.getInteger("webproxy-server-port"))
        .serve("/*").withBehaviours(new Behaviour() {
          @Override
          public boolean execute(final HttpServletRequest request, final HttpServletResponse response,
                                 final Map<Object, Object> ctx)
              throws Exception
          {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.