Example #1
0
 /** test for method vote(..) */
 public void testVote() {
   V1Poll p = testV1polls[1];
   p.m_hash = ByteArray.makeRandomBytes(20);
   try {
     p.castOurVote();
   } catch (IllegalStateException e) {
     // the socket isn't inited and should squack
   }
   p.m_pollstate = V1Poll.PS_COMPLETE;
 }