Fish & Chips Club 4.10.0.0

hirondelle.fish.main.member
Class TESTMemberAction

Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by hirondelle.fish.main.member.TESTMemberAction
All Implemented Interfaces:
junit.framework.Test

public class TESTMemberAction
extends junit.framework.TestCase

JUnit tests for MemberAction.

To run this class, the classpath must contain the database driver. See TESTAll.initControllerIfNeeded() as well.

Actions typically use a DAO. When testing, some prefer to use a fake DAO instead of the real one. This is done to eliminate side effects, such that the tests can be easily repeated. It may also significantly increase execution speed.


Constructor Summary
TESTMemberAction(String aName)
           
 
Method Summary
static void main(String[] args)
          Initialize the environment and run the test cases.
 void testAdd()
          This test is executed first.
 void testChange()
           
 void testDelete()
           
 void testFetch()
           
 void testList()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, 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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TESTMemberAction

public TESTMemberAction(String aName)
                 throws ServletException,
                        FileNotFoundException
Throws:
ServletException
FileNotFoundException
Method Detail

main

public static void main(String[] args)
                 throws ServletException,
                        FileNotFoundException
Initialize the environment and run the test cases.

Throws:
ServletException
FileNotFoundException

testAdd

public void testAdd()
             throws AppException
This test is executed first. Other tests that follow assume that particular records already exist.

Throws:
AppException

testList

public void testList()
              throws AppException
Throws:
AppException

testFetch

public void testFetch()
               throws AppException
Throws:
AppException

testChange

public void testChange()
                throws AppException
Throws:
AppException

testDelete

public void testDelete()
                throws AppException
Throws:
AppException

Fish & Chips Club 4.10.0.0

Copyright Hirondelle Systems - Generated 2013Oct19.12.26