public class TestHibernateConnection
extends junit.framework.TestCase
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
TestHibernateConnection() |
Modifier and Type | Method and Description |
---|---|
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() |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
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
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
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 testParameterAssignmentOperations() throws Exception
Exception
public void parameterAssignmentOperations() throws Exception
Exception
public void testResultStorage()
Copyright © 2012. All Rights Reserved.