Author: lfryc(a)redhat.com
Date: 2009-09-02 04:13:18 -0400 (Wed, 02 Sep 2009)
New Revision: 15433
Modified:
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/poll/PollTestCase.java
Log:
- add comments to PollTestCase and extend method testPollingStartAndStop() to 2
switch-cycles
Modified:
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/poll/PollTestCase.java
===================================================================
---
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/poll/PollTestCase.java 2009-09-02
07:43:58 UTC (rev 15432)
+++
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/poll/PollTestCase.java 2009-09-02
08:13:18 UTC (rev 15433)
@@ -39,6 +39,10 @@
private final String MSG_POLLING_ACTIVE = getMsg("POLLING_ACTIVE");
private final String MSG_POLLING_INACTIVE = getMsg("POLLING_INACTIVE");
+ /**
+ * Set polling state to active and checks that status is showing as active
+ * and server date is really polled.
+ */
@Test
public void testPollingProgress() {
setPollingStatus(true);
@@ -46,6 +50,10 @@
checkPollingProgress();
}
+ /**
+ * Set polling state to inactive and checks that status is showing as
+ * inactive and server date isn't polled.
+ */
@Test
public void testPollingStop() {
setPollingStatus(false);
@@ -53,6 +61,10 @@
checkPollingStopped();
}
+ /**
+ * Switch between polling state active/inactive and checks that status is
+ * right and server date is/isn't polled.
+ */
@Test
public void testPollingStopAndStart() {
setPollingStatus(false);
@@ -62,6 +74,14 @@
setPollingStatus(true);
checkPollingProgress();
+
+ setPollingStatus(false);
+
+ checkPollingStopped();
+
+ setPollingStatus(true);
+
+ checkPollingProgress();
}
private void checkPollingProgress() {