public class PolymorphismTest
extends junit.framework.TestCase
| Constructor and Description |
|---|
PolymorphismTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
testElementForInstanceWithSameType()
Test with the following characteristics:
1. |
void |
testElementWithAbstractType()
Test with the following characteristics:
1. |
void |
testExceptionOnMultipleSubelementsWithInterferingTypeDTO()
Test with the following characteristics:
1. |
void |
testExceptionOnMultipleSubelementsWithSameConcreteTypeDTO()
Test with the following characteristics:
1. |
void |
testListItemsForFirstInstanceWithSameType()
Test with the following characteristics:
1. |
void |
testListItemsWithAbstractType()
Test with the following characteristics:
1. |
void |
testMultipleSubelementsWithLeafTypes()
Test with the following characteristics:
1. |
void |
testSingleSubelementForInstanceWithSameType()
Test with the following characteristics:
1. |
void |
testSingleSubelementWithAbstractType()
Test with the following characteristics:
1. |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toStringassertEquals, 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, failNotEquals, failNotSame, failSame, formatpublic void testElementWithAbstractType()
Expectations:
The element instance gets an xsi:type attribute
public void testElementForInstanceWithSameType()
3. the type of the element instance is the same as type of the element
Expectations:
The element instance gets no xsi:type attribute
public void testSingleSubelementWithAbstractType()
Expectations:
The element instance gets an xsi:type attribute
public void testSingleSubelementForInstanceWithSameType()
3. the type of the element instance is the same as type of the element
Expectations:
The element instance gets no xsi:type attribute
public void testMultipleSubelementsWithLeafTypes()
public void testExceptionOnMultipleSubelementsWithSameConcreteTypeDTO()
public void testExceptionOnMultipleSubelementsWithInterferingTypeDTO()
public void testListItemsWithAbstractType()
Expectations:
Each element instance gets an xsi:type attribute
public void testListItemsForFirstInstanceWithSameType()
3. only one element instance has the same type as the element
Expectations:
The one element instance gets no xsi:type attribute but the others do
Copyright © 2014. All rights reserved.