org.mcraig.cs445.refentry
Class TestRefEntryServlet

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--org.mcraig.cs445.refentry.TestRefEntryServlet
All Implemented Interfaces:
junit.framework.Test

public class TestRefEntryServlet
extends junit.framework.TestCase

Test public methods of the RefEntryServlet class using the JUnit test framework.

Author:
Mark Craig

Field Summary
protected  RefEntryBackEnd backend
           
protected  java.util.Properties config
           
protected  java.io.File infile
           
protected  java.io.File outfile
           
protected  RefEntry refentry
           
protected  RefEntryServlet servlet
           
protected  java.util.Properties xslt
           
 
Constructor Summary
TestRefEntryServlet()
           
 
Method Summary
 void runTest()
           
protected  void setUp()
           
protected  void tearDown()
           
 void testDoGet()
           
 void testDoPost()
           
 void testGetServletInfo()
           
 void testGetTokens()
           
 void testInit()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, setName, 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

servlet

protected RefEntryServlet servlet

config

protected java.util.Properties config

backend

protected RefEntryBackEnd backend

infile

protected java.io.File infile

outfile

protected java.io.File outfile

xslt

protected java.util.Properties xslt

refentry

protected RefEntry refentry
Constructor Detail

TestRefEntryServlet

public TestRefEntryServlet()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Overrides:
tearDown in class junit.framework.TestCase
java.lang.Exception

testGetServletInfo

public void testGetServletInfo()

testInit

public void testInit()

testDoGet

public void testDoGet()

testDoPost

public void testDoPost()

testGetTokens

public void testGetTokens()

runTest

public void runTest()
Overrides:
runTest in class junit.framework.TestCase


Copyright © 2002-3 Mark Craig