Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.cactus.server.runner
Class TestServletTestRunner  view TestServletTestRunner download TestServletTestRunner.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.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 $

Field Summary
private  com.mockobjects.dynamic.Mock mockServletConfig
          Control mock for javax.servlet.ServletConfig.
private  com.mockobjects.dynamic.Mock mockServletContext
          Control mock for javax.servlet.ServletContext.
private  ServletTestRunner runner
          Object to unit test.
private  javax.servlet.ServletConfig servletConfig
          Mock for javax.servlet.ServletConfig.
private  javax.servlet.ServletContext servletContext
          Mock for javax.servlet.ServletContext.
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
TestServletTestRunner()
           
 
Method Summary
protected  void setUp()
          Sets up the fixture, for example, open a network connection.
 void testInitWhenNoXslStylesheet()
          Verify that the ServletTestRunner.init() 55 method works when there are no user stylesheet defined.
 void testInitWhenXslStylesheetNotFound()
          Verify that the ServletTestRunner.init() 55 method works when there is a user stylesheet defined which points to an invalid file.
 void testInitWithXslStylesheet()
          Verify that the ServletTestRunner.init() 55 method works when there is a valid user stylesheet defined.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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.

Constructor Detail

TestServletTestRunner

public TestServletTestRunner()
Method Detail

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.