Package org.asmatron.messengine.engines.AnnotationTestingClasses

Examples of org.asmatron.messengine.engines.AnnotationTestingClasses.ActionMethodTester


    assertTrue(annotationTester.requestHandled);
  }

  @Test
  public void shouldBindActionMethodsCorrectly() throws Exception {
    ActionMethodTester annotationTester = new ActionMethodTester();
    controlConfigurator.setupControlEngine(annotationTester);

    verify(engine).addActionHandler(actionTypeCaptor.capture(),
        actionHandlerCaptor.capture());
    ActionId type = actionTypeCaptor.getValue();
View Full Code Here


    assertEquals("abc", val.get());
  }

  @Test
  public void shouldManageAction() throws Exception {
    ActionMethodTester annotationTester = new ActionMethodTester();
    controlConfigurator.setupControlEngine(annotationTester);
    engine.send(TestTypes.action, new ValueAction<String>("aer"));
    assertEquals("aer", annotationTester.val);
  }
View Full Code Here

TOP

Related Classes of org.asmatron.messengine.engines.AnnotationTestingClasses.ActionMethodTester

Copyright © 2018 www.massapicom. 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.