コード例 #1
0
 @Test
 public void danglingViewCauses404() throws MalformedURLException {
   openWindow(DANGLING_VIEW_URI);
   waitModel.until(elementPresent.locator(LABEL));
   firstWindow.click(NAVIGATE_BUTTON);
   waitModel.waitForChange(retrieveText.locator(LABEL));
   assertThat(SecondUI.getNumberOfInstances(), is(1));
   assertThat(DanglingView.getNumberOfInstances(), is(0));
 }
コード例 #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();
 }