Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members

SkipTest.java

00001 package edu.virtualschool.jco.test;
00002 
00003 import junit.framework.TestCase;
00004 import edu.virtualschool.jco.JCOBase64;
00005 import edu.virtualschool.jco.unfinished.JCOSkip;
00006 
00007 public class SkipTest extends TestCase
00008 {
00009   int port = 8123;
00010   String host = "localhost";
00011 
00012   public SkipTest(String arg0)
00013   {
00014     super(arg0);
00015   }
00016   
00017   public void testSkip() throws Exception
00018   {
00019     new Thread()
00020     {
00021       public void start()
00022       {
00023         try
00024         {
00025           JCOSkip.Server server = new JCOSkip.Server(port);
00026           byte[] serverSecret = server.getSecretKey();
00027           System.err.println("server: "+JCOBase64.encode(serverSecret));
00028         }
00029         catch (Exception e)
00030         {
00031           e.printStackTrace();
00032         }
00033       }
00034     };
00035 //    JCOSkip.Client client = new JCOSkip.Client(host, port);
00036 //    byte[] clientSecret = client.getSecretKey();
00037 //    assertTrue(JCOUtil.isEqualBytes(serverSecret, clientSecret));
00038   }
00039 }