|
|||||||||||
| 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.ClassGeneratorTest
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 |
protected static java.lang.String NL
protected com.ashridgetech.jamda.test.ClassGeneratorTest.TestGenerator gen
protected com.ashridgetech.jamda.test.ClassGeneratorTest.TestGenerator igen
| Constructor Detail |
public ClassGeneratorTest(java.lang.String name)
TestCase
name - name of test to run| Method Detail |
public void testBasic()
throws java.io.IOException
ClassGenerator basic functions.
java.io.IOException
public void testImport()
throws java.io.IOException
ClassGenerator import functions.
java.io.IOException
public void testInterfaceDecl()
throws java.io.IOException
ClassGenerator declaration for an interface.
java.io.IOException
public void testFileHeader()
throws java.io.IOException
ClassGenerator file header.
java.io.IOException
public void testClassDecl()
throws java.io.IOException
ClassGenerator declaration for a class.
java.io.IOException
public void testFields()
throws java.io.IOException
ClassGenerator field generation.
java.io.IOException
public void testMethods()
throws java.io.IOException
ClassGenerator method generation.
java.io.IOException
public void testConstructors()
throws java.io.IOException
ClassGenerator constructor generation.
java.io.IOException
public void testProperties1()
throws java.io.IOException
ClassGenerator property generation.
java.io.IOException
public void testProperties2()
throws java.io.IOException
ClassGenerator property generation a bit more.
java.io.IOException
public void testProperties3()
throws java.io.IOException
ClassGenerator property generation for an interface.
java.io.IOException
public void testProperties4()
throws java.io.IOException
ClassGenerator modifying generated properties.
java.io.IOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||