Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

IdlePushChannelTest.java 728B

123456789101112131415161718192021222324
  1. package com.vaadin.tests.push;
  2. import org.junit.Assert;
  3. import org.junit.Test;
  4. import com.vaadin.testbench.parallel.TestCategory;
  5. import com.vaadin.tests.tb3.MultiBrowserTest;
  6. @TestCategory("push")
  7. public abstract class IdlePushChannelTest extends MultiBrowserTest {
  8. private static final int SEVEN_MINUTES_IN_MS = 7 * 60 * 1000;
  9. @Test
  10. public void longWaitBetweenActions() throws Exception {
  11. openTestURL();
  12. BasicPushTest.getIncrementButton(this).click();
  13. Assert.assertEquals(1, BasicPushTest.getClientCounter(this));
  14. sleep(SEVEN_MINUTES_IN_MS);
  15. BasicPushTest.getIncrementButton(this).click();
  16. Assert.assertEquals(2, BasicPushTest.getClientCounter(this));
  17. }
  18. }