|
||||||||||
| 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.coretest.TestTypeClone
public class TestTypeClone
All classes in the type model must be cloneable - what's more the clone must done in a deep fashion. The tests in the is class check that the base classes manage this correctly.
| Constructor Summary | |
|---|---|
TestTypeClone(java.lang.String name)
Constructs a test case with the given name. |
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
|
static junit.framework.Test |
suite()
|
void |
testCloneable()
Test to ensure that a sample of the Type classes in the core are cloneable, and don't throw 'CloneNotSupported' exceptions when a clone is attempted. |
void |
testCommandClone()
|
void |
testDeepCloneHistory()
|
void |
testDeepCloneType()
Types must clone their own attributes, this test checks that some of the Core's basic types handle this correctly. |
void |
testDeepCloneVersion()
|
void |
testDeepCloneWithAttributes()
An issue was raised with regards to the cloning of types (specifically Asset in the insurance model) that used Attributes. |
void |
testEnumCloning()
Since JDK 1.5 java supports enumerated types. |
void |
testMapCloning()
|
void |
testSetCloning()
|
void |
testTypeWithHashtable()
|
| 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 TestTypeClone(java.lang.String name)
| Method Detail |
|---|
public static junit.framework.Test suite()
public static void main(java.lang.String[] args)
public void testCloneable()
throws java.lang.Exception
java.lang.Exception
public void testDeepCloneType()
throws java.lang.Exception
java.lang.Exception
public void testDeepCloneVersion()
throws java.lang.Exception
java.lang.Exception
public void testDeepCloneHistory()
throws java.lang.Exception
java.lang.Exception
public void testCommandClone()
throws java.lang.Exception
java.lang.Exception
public void testTypeWithHashtable()
throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
public void testDeepCloneWithAttributes()
throws java.lang.Exception
java.lang.Exception
public void testEnumCloning()
throws java.lang.Exception
java.lang.Exception
public void testMapCloning()
throws java.lang.Exception
java.lang.Exception
public void testSetCloning()
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||