package com.limegroup.gnutella.lws.server; import junit.framework.Test; import junit.textui.TestRunner; import org.limewire.lws.server.LWSServerUtil; /** * Tests that we can send a 'StartCom' message to start a communication session. */ public class StartComTest extends AbstractCommunicationSupportWithNoLocalServer { public StartComTest(String s) { super(s); } public static Test suite() { return buildTestSuite(StartComTest.class); } public static void main(String[] args) { TestRunner.run(suite()); } public void testStartCom() { final String publicKey = getPublicKey(); assertTrue("invalid public key '" + publicKey + "'", LWSServerUtil.isValidPublicKey(publicKey)); } }