Fish & Chips Club 4.10.0.0

hirondelle.fish.main.member
Class TESTMember

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

public final class TESTMember
extends junit.framework.TestCase

JUnit tests for Member. Most tests for a Model Object are tests on the validation logic.

To run this class, the classpath must contain the database driver. This is because Member uses code tables, and code tables are initialized using the database. See TESTAll.initControllerIfNeeded().


Constructor Summary
TESTMember(String aName)
           
 
Method Summary
static void main(String[] args)
          Initialize the environment and run the test cases.
 void testConstruction()
          Almost all of the logic of a Model Object is in its validation, which is in turn called in its constructor.
 
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

TESTMember

public TESTMember(String aName)
Method Detail

main

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

Throws:
ServletException
FileNotFoundException

testConstruction

public void testConstruction()
Almost all of the logic of a Model Object is in its validation, which is in turn called in its constructor.

Hence, this class only exercises the success and failure of the constructor. There doesn't seem to be much value in testing the other public methods.


Fish & Chips Club 4.10.0.0

Copyright Hirondelle Systems - Generated 2013Oct19.12.26