|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.davesag.generica.test.FaqPersistenceTest
The FaqPersistenceTest tests that we can persist a
Faq using either Hibernate or JDO, via the
persistence framework.
Archivist,
Transaction,
Faq,
Serialized Form| Constructor Summary | |
FaqPersistenceTest()
null constructor |
|
FaqPersistenceTest(String name)
constructor that takes a test name |
|
| Method Summary | |
void |
setUp()
set up the archivist |
static Test |
suite()
the test suite. |
void |
tearDown()
close the archivist. |
void |
testCreateSaveEditLoadAndDeleteFaq()
Tests that we can create a Faq and save it. |
void |
testCreateSaveEditLoadAndDeleteFaqUsingPeer()
Tests that we can create a Faq and save it via the FaqPersistencePeer. |
void |
testInit()
just tests that set up and tear down work okay. |
String |
toString()
the test name |
| Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName |
| 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 |
| Constructor Detail |
public FaqPersistenceTest()
public FaqPersistenceTest(String name)
name - the name of this suite of tests| Method Detail |
public void testInit()
public void testCreateSaveEditLoadAndDeleteFaq()
Faq and save it. Then tests that
we can edit it, resave it, load it and delete it. So as to not clash
with actual faqs in the database we are setting the Locale
of our test Faqs to Locale.PRC.
public void testCreateSaveEditLoadAndDeleteFaqUsingPeer()
Faq and save it via the FaqPersistencePeer. Then
tests that we can edit it, resave it, load it and delete it. So as to
not clash with actual faqs in the database we are setting the
Locale of our test Faqs to Locale.PRC.
public void setUp()
throws Exception
Exception - if anything went wrong
public void tearDown()
throws Exception
Exception - if anything went wrong.public static Test suite()
public String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||