|
Fish & Chips Club 4.10.0.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object junit.framework.Assert junit.framework.TestCase hirondelle.fish.main.member.TESTMember
public final class TESTMember
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 |
---|
public TESTMember(String aName)
Method Detail |
---|
public static void main(String[] args) throws ServletException, FileNotFoundException
ServletException
FileNotFoundException
public void testConstruction()
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 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |