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()); }
String srvURL(PeerIdentity peer, ServletDescr d, String params) { return srvURLFromStem(peer.getUiUrlStem(reqURL.getPort()), d, params); }
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()); }