com.ashridgetech.jamda.test
Class UpdateTest

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--com.ashridgetech.jamda.test.BaseTest
                    |
                    +--com.ashridgetech.jamda.test.UpdateTest
All Implemented Interfaces:
junit.framework.Test

public class UpdateTest
extends BaseTest

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

updatedFileName

public static final java.lang.String updatedFileName

stringType

protected ClassType stringType

dateType

protected ClassType dateType

intType

protected DataType intType

voidType

protected DataType voidType

booleanType

protected DataType booleanType
Constructor Detail

UpdateTest

public UpdateTest(java.lang.String name)
Standard constructor required by subclasses of TestCase

Parameters:
name - name
Method Detail

suite

public static junit.framework.Test suite()

setUp

protected void setUp()
Overrides:
setUp in class junit.framework.TestCase

retrieveModel

protected void retrieveModel(java.lang.String fileName,
                             boolean transformWithXslt)

doUpdates

protected boolean doUpdates()

doWriteAndRepeat

protected boolean doWriteAndRepeat()

testStereotypesUpdate

public void testStereotypesUpdate()
                           throws java.io.IOException
Tests that Stereotypes can be created correctly Also tests they can be added to elements.

java.io.IOException

testTagDefinitionsUpdate

public void testTagDefinitionsUpdate()
                              throws java.io.IOException
Tests that model-level TagDefinitions can be created correctly Also tests they can be added to elements.

java.io.IOException

testPackagesUpdate

public void testPackagesUpdate()
                        throws java.io.IOException
Tests that ModelPackages can be created correctly.

java.io.IOException

testDataTypesUpdate

public void testDataTypesUpdate()
                         throws java.io.IOException
Tests that DataTypes can be created correctly.

java.io.IOException

testClassTypesUpdate

public void testClassTypesUpdate()
                          throws java.io.IOException
Tests that ClassTypes can be created correctly.

java.io.IOException

testCommentsUpdate

public void testCommentsUpdate()
                        throws java.io.IOException
Tests that comments can be created correctly.

java.io.IOException

testInterfaceTypesUpdate

public void testInterfaceTypesUpdate()
                              throws java.io.IOException
Tests that InterfaceTypes can be created correctly.

java.io.IOException

testClassInterfacesUpdate

public void testClassInterfacesUpdate()
                               throws java.io.IOException
Tests that InterfaceTypes can be linked to ClassTypes correctly.

java.io.IOException

testAttributesUpdate

public void testAttributesUpdate()
                          throws java.io.IOException
Tests that Attributes can be created correctly.

java.io.IOException

testOperationsUpdate

public void testOperationsUpdate()
                          throws java.io.IOException
Tests that Operations can be created correctly.

java.io.IOException

writeXmiFile

public void writeXmiFile()
                  throws java.io.IOException
Tests that Parameters can be created correctly.

java.io.IOException

writeAndRepeat

public boolean writeAndRepeat()
                       throws java.io.IOException
java.io.IOException


Copyright © 2003 Ashridge Technologies Ltd. All Rights Reserved.