|
|||||||||||
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.ClassWriterTest
Tests the ClassWriter
class. Invoke via junit.swingui.TestRunner.
Field Summary | |
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 | |
ClassWriterTest(java.lang.String name)
Standard constructor required by subclasses of TestCase |
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
Constructor Detail |
public ClassWriterTest(java.lang.String name)
TestCase
name
- nameMethod Detail |
public void testWrite()
ClassWriter
basic write functions.
public void testLinesBlocks()
ClassWriter
line writing functions.
public void testCommaList()
CodeWriter.commaList(java.util.Collection)
.
public void testCopy() throws java.io.IOException
CodeWriter.copyWithIndent(java.io.Reader)
and CodeWriter.copyNoIndent(java.io.Reader)
.
java.io.IOException
public void testJavaWriter()
JavaWriter
methods.
public void testFileHeader()
ClassWriter.fileHeader(java.lang.String, java.lang.String)
.
public void testPackageDecl()
ClassWriter.packageDecl(java.lang.String)
.
public void testImports()
ClassWriter.imports(java.util.Collection)
.
public void testClassDoc()
ClassWriter.classDoc(java.lang.String)
.
public void testClassDecl()
ClassWriter.classDecl(java.lang.String, int, java.lang.String, java.util.Collection)
.
public void testInterfaceDecl()
ClassWriter.interfaceDecl(java.lang.String, int, java.util.Collection)
.
public void testField()
ClassWriter.field(java.lang.String, java.lang.String, int)
.
public void testBeginMethodSimple()
ClassWriter.beginMethod(com.ashridgetech.jamda.code.ClassWriter.MethodDetails)
.
public void testBeginMethodInterface()
ClassWriter.beginMethod(com.ashridgetech.jamda.code.ClassWriter.MethodDetails)
.
public void testBeginMethod2()
ClassWriter.beginMethod(com.ashridgetech.jamda.code.ClassWriter.MethodDetails)
with package scope, one parameter,
documentation for the method only.
public void testBeginMethod3()
ClassWriter.beginMethod(com.ashridgetech.jamda.code.ClassWriter.MethodDetails)
with full monty.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |