org.apache.cactus.internal.server
Class ServerTestCaseDelegate

java.lang.Object
  extended byjunit.framework.Assert
      extended byorg.apache.cactus.internal.server.ServerTestCaseDelegate

public class ServerTestCaseDelegate
extends junit.framework.Assert

Delegate class that allows executing JUnit test on the server side by calling setUp(), testXXX() and tearDown().

Version:
$Id: ServerTestCaseDelegate.java,v 1.1 2003/07/12 19:31:41 vmassol Exp $
Author:
Vincent Massol

Constructor Summary
ServerTestCaseDelegate(junit.framework.Test theDelegatedTest, junit.framework.Test theWrappedTest)
           
 
Method Summary
 junit.framework.Test getDelegatedTest()
           
 junit.framework.Test getWrappedTest()
           
 void runBareInit()
           
 void runServerTest()
          Run the test that was specified in the constructor on the server side by executing the testXXX method.
 void setDelegatedTest(junit.framework.Test theDelegatedTest)
           
 void setWrappedTest(junit.framework.Test theWrappedTest)
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerTestCaseDelegate

public ServerTestCaseDelegate(junit.framework.Test theDelegatedTest,
                              junit.framework.Test theWrappedTest)
Parameters:
theDelegatedTest - the test we are delegating for
theWrappedTest - the test being wrapped by this delegate (or null if none)
Method Detail

setWrappedTest

public void setWrappedTest(junit.framework.Test theWrappedTest)
Parameters:
theWrappedTest - the pure JUnit test that we need to wrap

getWrappedTest

public junit.framework.Test getWrappedTest()
Returns:
the wrapped JUnit test

setDelegatedTest

public void setDelegatedTest(junit.framework.Test theDelegatedTest)
Parameters:
theDelegatedTest - the test we are delegating for

getDelegatedTest

public junit.framework.Test getDelegatedTest()
Returns:
the test we are delegating for

runBareInit

public void runBareInit()

runServerTest

public void runServerTest()
                   throws java.lang.Throwable
Run the test that was specified in the constructor on the server side by executing the testXXX method.

Throws:
java.lang.Throwable - any error that occurred when calling the test method for the current test case, on the server side.


Copyright © 2000-2003 Apache Software Foundation. All Rights Reserved.