コード例 #1
0
 @Test
 public void navigationToRestrictedViewFails() throws MalformedURLException {
   assertThat(ParameterizedNavigationUI.getNumberOfInstances(), is(0));
   assertThat(RestrictedView.getNumberOfInstances(), is(0));
   ParameterizedNavigationUI.NAVIGATE_TO = deriveMappingForView(RestrictedView.class);
   openWindow(deriveMappingForUI(ParameterizedNavigationUI.class));
   firstWindow.click(NAVIGATE_BUTTON);
   waitModel.waitForChange(retrieveText.locator(LABEL));
   assertThat(ParameterizedNavigationUI.getNumberOfInstances(), is(1));
   assertThat(RestrictedView.getNumberOfInstances(), is(0));
   assertDefaultRootNotInstantiated();
 }
コード例 #2
0
 @Before
 public void resetCounter() {
   PlainUI.resetCounter();
   PlainAlternativeUI.resetCounter();
   PlainColidingAlternativeUI.resetCounter();
   InstrumentedUI.resetCounter();
   InstrumentedView.resetCounter();
   ScopedInstrumentedView.resetCounter();
   ViewWithoutAnnotation.resetCounter();
   WithAnnotationRegisteredView.resetCounter();
   SecondUI.resetCounter();
   RootUI.resetCounter();
   RootWithCustomMappingUI.resetCounter();
   UIWithCDIDependentListener.resetCounter();
   UIWithCDISelfListener.resetCounter();
   DependentCDIEventListener.resetCounter();
   DependentCDIEventListener.resetEventCounter();
   ParameterizedNavigationUI.reset();
   NoViewProviderNavigationUI.resetCounter();
   firstWindow.restartBrowser();
 }