|
||||||||||
| 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.CreditCardTest
CreditCardTest is collection of all of the tests on CreditCards
and CreditCard peers.
| Field Summary | |
static Session |
SESSION
the hibernate session |
static SessionFactory |
SESSION_FACTORY
the hibernate session factory |
| Constructor Summary | |
CreditCardTest()
null constructor |
|
CreditCardTest(String name)
constructor that takes a test name |
|
| Method Summary | |
void |
setUp()
set up the hibernate session factory. |
static Test |
suite()
the test suite |
void |
tearDown()
tear down the hibernate session. |
void |
testCreateEditAndDeleteCreditCard()
tests that we can create a card, save it, and delete it. |
void |
testCreateEditAndDeleteOtherCreditCard()
tests that we can create a different card, save it, and delete it. |
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 |
| Field Detail |
public static SessionFactory SESSION_FACTORY
public static Session SESSION
| Constructor Detail |
public CreditCardTest()
public CreditCardTest(String name)
name - the name of this suite of tests| Method Detail |
public void testInit()
public void testCreateEditAndDeleteCreditCard()
public void testCreateEditAndDeleteOtherCreditCard()
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 | |||||||||