ParticipantIDParser { protected static Object portToNormalizedLongString(String port) { return String.format("%05d", Long.parseLong(port)); }  static String encode(String raw); static String decode(String encoded); static String[] parseId(String raw); static String getIpAddress(String encoded); static String[] parseEncodedId(String encodedId); static boolean isCall(RemoteParticipant participant); static boolean isMixer(RemoteParticipant participant); static void main(String[] args); static Pattern pattern; }
@Test public void testEncodePorts() { assertEquals(ParticipantIDParser.portToNormalizedLongString("20"), "00020"); assertEquals(ParticipantIDParser.portToNormalizedLongString("200"), "00200"); assertEquals(ParticipantIDParser.portToNormalizedLongString("2000"), "02000"); assertEquals(ParticipantIDParser.portToNormalizedLongString("20000"), "20000"); }