|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--junit.framework.Assert | +--junit.framework.TestCase | +--com.ashridgetech.jamda.test.BaseTest | +--com.ashridgetech.jamda.test.UpdateTest
Tests updates to the com.ashridgetech.jamda.uml package classes. Invoke via junit.swingui.TestRunner. Assumes the use of the ecomm2j test package.
Field Summary | |
protected DataType |
booleanType
|
protected ClassType |
dateType
|
protected DataType |
intType
|
protected ClassType |
stringType
|
static java.lang.String |
updatedFileName
|
protected DataType |
voidType
|
Fields inherited from class com.ashridgetech.jamda.test.BaseTest |
checkTextIgnorePrefixes, classWriter, MAGICDRAW_STYLESHEET_LOCATION, NO_NAMES, NO_TYPES, projectRoot, stringWriter, testFile |
Constructor Summary | |
UpdateTest(java.lang.String name)
Standard constructor required by subclasses of TestCase |
Method Summary | |
protected boolean |
doUpdates()
|
protected boolean |
doWriteAndRepeat()
|
protected void |
retrieveModel(java.lang.String fileName,
boolean transformWithXslt)
|
protected void |
setUp()
|
static junit.framework.Test |
suite()
|
void |
testAttributesUpdate()
Tests that Attribute s can be created correctly. |
void |
testClassInterfacesUpdate()
Tests that InterfaceType s can be linked to ClassType s correctly. |
void |
testClassTypesUpdate()
Tests that ClassType s can be created correctly. |
void |
testCommentsUpdate()
Tests that comments can be created correctly. |
void |
testDataTypesUpdate()
Tests that DataType s can be created correctly. |
void |
testInterfaceTypesUpdate()
Tests that InterfaceType s can be created correctly. |
void |
testOperationsUpdate()
Tests that Operation s can be created correctly. |
void |
testPackagesUpdate()
Tests that ModelPackage s can be created correctly. |
void |
testStereotypesUpdate()
Tests that Stereotype s can be created correctly
Also tests they can be added to elements. |
void |
testTagDefinitionsUpdate()
Tests that model-level TagDefinition s can be created correctly
Also tests they can be added to elements. |
boolean |
writeAndRepeat()
|
void |
writeXmiFile()
Tests that Parameter s can be created correctly. |
Methods inherited from class com.ashridgetech.jamda.test.BaseTest |
assertContains, assertContainsAsString, assertContainsOnly, assertContainsOnly, assertContainsOnly, assertContainsOnly, assertEmpty, assertNotContainsAsString, checkAssocEnd, checkAttribute, checkEquals, checkEquals, checkOperation, checkProperty, checkText, checkText, checkTextIgnore, fullPathName, getModel, getText, loadModel, loadModel, testFileName |
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, 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 java.lang.String updatedFileName
protected ClassType stringType
protected ClassType dateType
protected DataType intType
protected DataType voidType
protected DataType booleanType
Constructor Detail |
public UpdateTest(java.lang.String name)
TestCase
name
- nameMethod Detail |
public static junit.framework.Test suite()
protected void setUp()
setUp
in class junit.framework.TestCase
protected void retrieveModel(java.lang.String fileName, boolean transformWithXslt)
protected boolean doUpdates()
protected boolean doWriteAndRepeat()
public void testStereotypesUpdate() throws java.io.IOException
Stereotype
s can be created correctly
Also tests they can be added to elements.
java.io.IOException
public void testTagDefinitionsUpdate() throws java.io.IOException
TagDefinition
s can be created correctly
Also tests they can be added to elements.
java.io.IOException
public void testPackagesUpdate() throws java.io.IOException
ModelPackage
s can be created correctly.
java.io.IOException
public void testDataTypesUpdate() throws java.io.IOException
DataType
s can be created correctly.
java.io.IOException
public void testClassTypesUpdate() throws java.io.IOException
ClassType
s can be created correctly.
java.io.IOException
public void testCommentsUpdate() throws java.io.IOException
java.io.IOException
public void testInterfaceTypesUpdate() throws java.io.IOException
InterfaceType
s can be created correctly.
java.io.IOException
public void testClassInterfacesUpdate() throws java.io.IOException
InterfaceType
s can be linked to ClassType
s correctly.
java.io.IOException
public void testAttributesUpdate() throws java.io.IOException
Attribute
s can be created correctly.
java.io.IOException
public void testOperationsUpdate() throws java.io.IOException
Operation
s can be created correctly.
java.io.IOException
public void writeXmiFile() throws java.io.IOException
Parameter
s can be created correctly.
java.io.IOException
public boolean writeAndRepeat() throws java.io.IOException
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |