|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
com.ail.insurancetest.TestAssessmentSheet
public class TestAssessmentSheet
The assessment sheet is at the center of the quotation process. It can be thought of as a restricted spreadsheet. Entries can be absulute amounts (Sums) or rates (Percentage). Each entry may depend on a maximum of one other entry, and may contribute to another. Most of what the calculatePremium service does is to run through this table processing it and producing results from it.
| Constructor Summary | |
|---|---|
TestAssessmentSheet(java.lang.String name)
Constructs a test case with the given name. |
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
Run this testcase from the command line. |
static junit.framework.Test |
suite()
Create an instance of this test case as a TestSuite. |
void |
testAddLineWithoutLock()
Check that lines can only be added to the sheet if either the sheet is locked to an actor, or the lines already have an origin. |
void |
testAssessmentSheetDoubleLock()
Test assessment sheet double lock. |
void |
testDuplicateLineDetection()
Check that duplicate lines are detected. |
void |
testRemoveLinesByActor()
Test the removal of lines by actor. |
void |
testSimpleManipulation()
Test summary methods and simple line additions |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, getName, run, run, runBare, 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 |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TestAssessmentSheet(java.lang.String name)
name - The tests name| Method Detail |
|---|
public static junit.framework.Test suite()
public static void main(java.lang.String[] args)
args - No command line args are required.public void testSimpleManipulation()
public void testAssessmentSheetDoubleLock()
throws java.lang.Exception
java.lang.Exception
public void testAddLineWithoutLock()
throws java.lang.Exception
java.lang.Exceptionpublic void testRemoveLinesByActor()
removeLinesByOrigin method. This should remove all of that actor's lines,
but not touch any of the others.
public void testDuplicateLineDetection()
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||