Savarese.Org

org.savarese.barehttp
Class MainTest

java.lang.Object
  extended by TestCase
      extended by org.savarese.barehttp.HTTPTestCase
          extended by org.savarese.barehttp.HTTPServerTest
              extended by org.savarese.barehttp.MainTest

public class MainTest
extends HTTPServerTest

Tests the Main class by making use of HTTPServerTest, calling Main.main to start a server instead of instantiating HTTPServer.

Author:
Daniel F. Savarese

Constructor Summary
MainTest()
           
 
Method Summary
 void testBadArgs()
          Tests that an invalid number of arguments doesn't start server.
 
Methods inherited from class org.savarese.barehttp.HTTPServerTest
testHTTPServer, testStop
 
Methods inherited from class org.savarese.barehttp.HTTPTestCase
testGetRequest09, testGetRequest11
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MainTest

public MainTest()
         throws java.io.IOException
Throws:
java.io.IOException
Method Detail

testBadArgs

public void testBadArgs()
                 throws java.io.IOException
Tests that an invalid number of arguments doesn't start server.

Throws:
java.io.IOException

Savarese.Org

Copyright © 2001,2006,2010,2012 Daniel F. Savarese. All Rights Reserved.