示例#1
0
 public void testTestMessageToString() throws IOException {
   String expectedResult =
       "[V3LcapMessage: from "
           + m_testID.toString()
           + ", Vote AUID: TestAU_1.0 "
           + "Key:key "
           + "PN:AQIDBAUGBwgJAAECAwQFBgcICQA= "
           + "VN:AQIDBAUGBwgJAAECAwQFBgcICQA= "
           + "B:10 ver 3 rev 5]";
   assertEquals(expectedResult, m_testMsg.toString());
 }
示例#2
0
 public void testNoOpMessageToString() throws IOException {
   V3LcapMessage noopMsg =
       V3LcapMessage.makeNoOpMsg(m_testID, m_testBytes, m_testBytes, theDaemon);
   String expectedResult = "[V3LcapMessage: from " + m_testID.toString() + ", NoOp]";
   assertEquals(expectedResult, noopMsg.toString());
 }