|
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.TESTMemberAction
public class TESTMemberAction
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 |
---|
public TESTMemberAction(String aName) throws ServletException, FileNotFoundException
ServletException
FileNotFoundException
Method Detail |
---|
public static void main(String[] args) throws ServletException, FileNotFoundException
ServletException
FileNotFoundException
public void testAdd() throws AppException
AppException
public void testList() throws AppException
AppException
public void testFetch() throws AppException
AppException
public void testChange() throws AppException
AppException
public void testDelete() throws AppException
AppException
|
Fish & Chips Club 4.10.0.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |