Beispiel #1
0
 /** test for method stopPoll(..) */
 public void testStopPoll() {
   V1Poll p = testV1polls[1];
   p.m_tally.quorum = 10;
   p.m_tally.numAgree = 7;
   p.m_tally.numDisagree = 3;
   p.m_pollstate = V1Poll.PS_WAIT_TALLY;
   p.stopPoll();
   assertTrue(p.m_pollstate == V1Poll.PS_COMPLETE);
   p.startPoll();
   assertTrue(p.m_pollstate == V1Poll.PS_COMPLETE);
 }
Beispiel #2
0
 public void testStartPoll() {
   V1Poll p = testV1polls[0];
   p.startPoll();
   assertEquals(V1Poll.PS_WAIT_HASH, p.m_pollstate);
   p.m_pollstate = V1Poll.PS_COMPLETE;
 }