com.ashridgetech.jamda.test
Class ClassGeneratorTest

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

public class ClassGeneratorTest
extends BaseTest

Tests the ClassGenerator class. Invoke via junit.swingui.TestRunner.


Field Summary
protected  com.ashridgetech.jamda.test.ClassGeneratorTest.TestGenerator gen
           
protected  com.ashridgetech.jamda.test.ClassGeneratorTest.TestGenerator igen
           
protected static java.lang.String NL
           
 
Fields inherited from class com.ashridgetech.jamda.test.BaseTest
checkTextIgnorePrefixes, classWriter, MAGICDRAW_STYLESHEET_LOCATION, NO_NAMES, NO_TYPES, projectRoot, stringWriter, testFile
 
Constructor Summary
ClassGeneratorTest(java.lang.String name)
          Standard constructor required by subclasses of TestCase
 
Method Summary
 void testBasic()
          Tests various ClassGenerator basic functions.
 void testClassDecl()
          Tests ClassGenerator declaration for a class.
 void testConstructors()
          Tests ClassGenerator constructor generation.
 void testFields()
          Tests ClassGenerator field generation.
 void testFileHeader()
          Tests ClassGenerator file header.
 void testImport()
          Tests ClassGenerator import functions.
 void testInterfaceDecl()
          Tests ClassGenerator declaration for an interface.
 void testMethods()
          Tests ClassGenerator method generation.
 void testProperties1()
          Tests ClassGenerator property generation.
 void testProperties2()
          Tests ClassGenerator property generation a bit more.
 void testProperties3()
          Tests ClassGenerator property generation for an interface.
 void testProperties4()
          Tests ClassGenerator modifying generated properties.
 
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, setUp, 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

NL

protected static java.lang.String NL

gen

protected com.ashridgetech.jamda.test.ClassGeneratorTest.TestGenerator gen

igen

protected com.ashridgetech.jamda.test.ClassGeneratorTest.TestGenerator igen
Constructor Detail

ClassGeneratorTest

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

Parameters:
name - name of test to run
Method Detail

testBasic

public void testBasic()
               throws java.io.IOException
Tests various ClassGenerator basic functions.

java.io.IOException

testImport

public void testImport()
                throws java.io.IOException
Tests ClassGenerator import functions.

java.io.IOException

testInterfaceDecl

public void testInterfaceDecl()
                       throws java.io.IOException
Tests ClassGenerator declaration for an interface.

java.io.IOException

testFileHeader

public void testFileHeader()
                    throws java.io.IOException
Tests ClassGenerator file header.

java.io.IOException

testClassDecl

public void testClassDecl()
                   throws java.io.IOException
Tests ClassGenerator declaration for a class.

java.io.IOException

testFields

public void testFields()
                throws java.io.IOException
Tests ClassGenerator field generation.

java.io.IOException

testMethods

public void testMethods()
                 throws java.io.IOException
Tests ClassGenerator method generation.

java.io.IOException

testConstructors

public void testConstructors()
                      throws java.io.IOException
Tests ClassGenerator constructor generation.

java.io.IOException

testProperties1

public void testProperties1()
                     throws java.io.IOException
Tests ClassGenerator property generation.

java.io.IOException

testProperties2

public void testProperties2()
                     throws java.io.IOException
Tests ClassGenerator property generation a bit more.

java.io.IOException

testProperties3

public void testProperties3()
                     throws java.io.IOException
Tests ClassGenerator property generation for an interface.

java.io.IOException

testProperties4

public void testProperties4()
                     throws java.io.IOException
Tests ClassGenerator modifying generated properties.

java.io.IOException


Copyright © 2003 Ashridge Technologies Ltd. All Rights Reserved.