java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.apache.cactus.server.runner.TestServletTestRunner
- All Implemented Interfaces:
- junit.framework.Test
- public final class TestServletTestRunner
- extends junit.framework.TestCase
Unit tests for ServletTestRunner.
- Version:
- $Id: TestServletTestRunner.java,v 1.1 2004/05/22 11:34:50 vmassol Exp $
| Fields inherited from class junit.framework.TestCase |
|
| 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 |
mockServletConfig
private com.mockobjects.dynamic.Mock mockServletConfig
- Control mock for javax.servlet.ServletConfig.
servletConfig
private javax.servlet.ServletConfig servletConfig
- Mock for javax.servlet.ServletConfig.
mockServletContext
private com.mockobjects.dynamic.Mock mockServletContext
- Control mock for javax.servlet.ServletContext.
servletContext
private javax.servlet.ServletContext servletContext
- Mock for javax.servlet.ServletContext.
runner
private ServletTestRunner runner
- Object to unit test.
TestServletTestRunner
public TestServletTestRunner()
setUp
protected void setUp()
- Description copied from class:
junit.framework.TestCase
- Sets up the fixture, for example, open a network connection.
This method is called before a test is executed.
testInitWhenNoXslStylesheet
public void testInitWhenNoXslStylesheet()
throws javax.servlet.ServletException
- Verify that the
ServletTestRunner.init() 55 method works when
there are no user stylesheet defined.
testInitWhenXslStylesheetNotFound
public void testInitWhenXslStylesheetNotFound()
throws javax.servlet.ServletException
- Verify that the
ServletTestRunner.init() 55 method works when
there is a user stylesheet defined which points to an invalid
file.
testInitWithXslStylesheet
public void testInitWithXslStylesheet()
throws javax.servlet.ServletException
- Verify that the
ServletTestRunner.init() 55 method works when
there is a valid user stylesheet defined.