|
|||||||||||
| 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 Attributes can be created correctly. |
void |
testClassInterfacesUpdate()
Tests that InterfaceTypes can be linked to ClassTypes correctly. |
void |
testClassTypesUpdate()
Tests that ClassTypes can be created correctly. |
void |
testCommentsUpdate()
Tests that comments can be created correctly. |
void |
testDataTypesUpdate()
Tests that DataTypes can be created correctly. |
void |
testInterfaceTypesUpdate()
Tests that InterfaceTypes can be created correctly. |
void |
testOperationsUpdate()
Tests that Operations can be created correctly. |
void |
testPackagesUpdate()
Tests that ModelPackages can be created correctly. |
void |
testStereotypesUpdate()
Tests that Stereotypes can be created correctly
Also tests they can be added to elements. |
void |
testTagDefinitionsUpdate()
Tests that model-level TagDefinitions can be created correctly
Also tests they can be added to elements. |
boolean |
writeAndRepeat()
|
void |
writeXmiFile()
Tests that Parameters 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 - name| Method 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
Stereotypes can be created correctly
Also tests they can be added to elements.
java.io.IOException
public void testTagDefinitionsUpdate()
throws java.io.IOException
TagDefinitions can be created correctly
Also tests they can be added to elements.
java.io.IOException
public void testPackagesUpdate()
throws java.io.IOException
ModelPackages can be created correctly.
java.io.IOException
public void testDataTypesUpdate()
throws java.io.IOException
DataTypes can be created correctly.
java.io.IOException
public void testClassTypesUpdate()
throws java.io.IOException
ClassTypes can be created correctly.
java.io.IOException
public void testCommentsUpdate()
throws java.io.IOException
java.io.IOException
public void testInterfaceTypesUpdate()
throws java.io.IOException
InterfaceTypes can be created correctly.
java.io.IOException
public void testClassInterfacesUpdate()
throws java.io.IOException
InterfaceTypes can be linked to ClassTypes correctly.
java.io.IOException
public void testAttributesUpdate()
throws java.io.IOException
Attributes can be created correctly.
java.io.IOException
public void testOperationsUpdate()
throws java.io.IOException
Operations can be created correctly.
java.io.IOException
public void writeXmiFile()
throws java.io.IOException
Parameters 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 | ||||||||||