|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
p3j.database.hibernate.TestHibernateConnection
public class TestHibernateConnection
Tests Hibernate connection. Created: August 17, 2008
Field Summary | |
---|---|
static String |
EXPL_DELETION
Explanation for asserting a proper deletion. |
static String |
EXPL_EQUAL_FIRST
Explanation for asserting object equality. |
static String |
EXPL_ID_SAVE
Explanation for assertion regarding automated ID generation. |
static String |
EXPL_INSTANTIATION
Explanation for assertion regarding instance generation. |
static String |
EXPL_ONE_ENTITY
Explanation for asserting the size of the table (1 row). |
static String |
EXPL_TWO_ENTITIES
Explanation for asserting the size of the table (2 rows). |
static String |
EXPL_UNIQUE
Explanation for asserting the retrieval of identical entities. |
static int |
TEST_GENERATIONS
Number of generations for which to test. |
static int |
TEST_JUMP_OFF_YEAR
The jump-off year for testing. |
static int |
TEST_MAX_AGE
Maximum age for testing. |
static int |
TEST_PRED_YEARS
Number of years to be predicted when testing. |
static int |
TEST_SQUARE_MATRIX_WIDTH
Width of the square used for testing. |
Constructor Summary | |
---|---|
TestHibernateConnection()
|
Method Summary | |
---|---|
void |
matrixOperations()
|
void |
parameterAssignmentOperations()
|
void |
parameterInstanceOperations()
|
void |
projectionOperations()
|
void |
setOperations()
|
void |
setTypeOperations()
|
void |
setUp()
|
void |
tearDown()
|
void |
testMatrixOperations()
Tests all matrix-related operations. |
void |
testParameterAssignmentOperations()
|
void |
testParameterInstanceOperations()
Tests database operations for ParameterInstance objects. |
void |
testParameterOperations()
Tests all database operations regarding Parameter objects. |
void |
testProjectionOperations()
|
void |
testResultStorage()
|
void |
testSetOperations()
|
void |
testSetTypeOperations()
|
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String EXPL_INSTANTIATION
public static final String EXPL_ID_SAVE
public static final String EXPL_UNIQUE
public static final String EXPL_ONE_ENTITY
public static final String EXPL_TWO_ENTITIES
public static final String EXPL_DELETION
public static final String EXPL_EQUAL_FIRST
public static final int TEST_SQUARE_MATRIX_WIDTH
public static final int TEST_GENERATIONS
public static final int TEST_MAX_AGE
public static final int TEST_JUMP_OFF_YEAR
public static final int TEST_PRED_YEARS
Constructor Detail |
---|
public TestHibernateConnection()
Method Detail |
---|
public void setUp() throws Exception
setUp
in class junit.framework.TestCase
Exception
public void tearDown() throws Exception
tearDown
in class junit.framework.TestCase
Exception
public void testParameterOperations() throws Exception
Parameter
objects.
Exception
- when something failspublic void testParameterInstanceOperations() throws Exception
ParameterInstance
objects.
Exception
- when something failspublic void parameterInstanceOperations() throws Exception
Exception
public void testMatrixOperations() throws Exception
Exception
- if database operations failpublic void matrixOperations() throws Exception
Exception
public void testParameterAssignmentOperations() throws Exception
Exception
public void parameterAssignmentOperations() throws Exception
Exception
public void testSetOperations() throws Exception
Exception
public void setOperations() throws Exception
Exception
public void testSetTypeOperations() throws Exception
Exception
public void setTypeOperations() throws Exception
Exception
public void testProjectionOperations() throws Exception
Exception
public void projectionOperations() throws Exception
Exception
public void testResultStorage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |