public static final String SERVER_COUNTER_ID = "serverCounter";
- public static final String INCREMENT_BUTTON_ID = "clientCounter";
+ public static final String INCREMENT_BUTTON_ID = "incrementCounter";
private ObjectProperty<Integer> counter = new ObjectProperty<Integer>(0);
waitUntilServerCounterChanges();
// The change should have appeared when reconnected
Assert.assertEquals(1, getClientCounter());
+
+ // IE has problems with another reconnect
+ disconnectProxy();
+ getIncrementClientCounterButton().click();
+ Assert.assertEquals(1, getClientCounter());
+ Thread.sleep(1000);
+ connectProxy();
+ waitUntilServerCounterChanges();
+ Assert.assertEquals(2, getClientCounter());
}
@Test
waitUntilServerCounterChanges();
}
+ @Test
+ public void testReallyLongDisconnect() throws Exception {
+ setDebug(true);
+ openTestURL();
+ startTimer();
+ waitUntilServerCounterChanges();
+ disconnectProxy();
+ Thread.sleep(120000);
+ connectProxy();
+ waitUntilServerCounterChanges();
+ }
+
@Test
public void testMultipleDisconnects() throws Exception {
setDebug(true);