net.sourceforge.jwebunit.tests.util
Class JettySetup

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.extensions.TestDecorator
          extended by junit.extensions.TestSetup
              extended by net.sourceforge.jwebunit.tests.util.JettySetup
All Implemented Interfaces:
junit.framework.Test

public class JettySetup
extends junit.extensions.TestSetup

Sets up and tears down the Jetty servlet engine before and after the tests in the TestSuite have run.

Author:
Eelco Hillenius

Field Summary
 
Fields inherited from class junit.extensions.TestDecorator
fTest
 
Constructor Summary
JettySetup(junit.framework.Test test)
          Constructor.
 
Method Summary
 void setUp()
          Starts the Jetty server using the jetty-test-config.xml file which is loaded using the classloader used to load Jetty.
 void tearDown()
          Stops the Jetty server.
 
Methods inherited from class junit.extensions.TestSetup
run
 
Methods inherited from class junit.extensions.TestDecorator
basicRun, countTestCases, getTest, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JettySetup

public JettySetup(junit.framework.Test test)
Constructor.

Parameters:
test -
Method Detail

setUp

public void setUp()
           throws java.lang.Exception
Starts the Jetty server using the jetty-test-config.xml file which is loaded using the classloader used to load Jetty.

Overrides:
setUp in class junit.extensions.TestSetup
Throws:
java.lang.Exception
See Also:
TestSetup.setUp()

tearDown

public void tearDown()
              throws java.lang.Exception
Stops the Jetty server.

Overrides:
tearDown in class junit.extensions.TestSetup
Throws:
java.lang.Exception
See Also:
TestSetup.tearDown()


Copyright © 2002-2011 SourceForge. All Rights Reserved.