Search in sources :

Example 1 with ClassScenarioRouteLayout

use of com.aire.ux.test.vaadin.scenarios.classroutes.ClassScenarioRouteLayout in project aire-components by aire-ux.

the class TopLevelVaadinTestCaseTest method ensureTestMethodGeneratesFrameWithCurrentMethod2.

@ViewTest
@Navigate("test")
@Routes(scanPackage = "com.aire.ux.test.vaadin.scenarios.classroutes")
void ensureTestMethodGeneratesFrameWithCurrentMethod2(@Select ClassScenarioRouteLayout layout) throws NoSuchMethodException {
    val method = Frames.resolveCurrentFrame().getContext().getTestMethod();
    assertTrue(method.isPresent());
    val m = method.get();
    assertEquals(m, TopLevelVaadinTestCaseTest.class.getDeclaredMethod("ensureTestMethodGeneratesFrameWithCurrentMethod2", ClassScenarioRouteLayout.class));
}
Also used : lombok.val(lombok.val) ClassScenarioRouteLayout(com.aire.ux.test.vaadin.scenarios.classroutes.ClassScenarioRouteLayout) ViewTest(com.aire.ux.test.ViewTest) Navigate(com.aire.ux.test.Navigate) Routes(com.aire.ux.test.Routes)

Aggregations

Navigate (com.aire.ux.test.Navigate)1 Routes (com.aire.ux.test.Routes)1 ViewTest (com.aire.ux.test.ViewTest)1 ClassScenarioRouteLayout (com.aire.ux.test.vaadin.scenarios.classroutes.ClassScenarioRouteLayout)1 lombok.val (lombok.val)1