mockmaker.tests
Class CodeWriterTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by mockmaker.tests.CodeWriterTest
All Implemented Interfaces:
junit.framework.Test

public class CodeWriterTest
extends junit.framework.TestCase


Field Summary
private  CodeWriter myCodeWriter
           
private  java.io.PrintWriter myExpectingPrintWriter
           
private  java.io.StringWriter myExpectingStringWriter
           
private  java.io.PrintWriter myPrintWriter
           
private  java.io.StringWriter myStringWriter
           
 
Constructor Summary
CodeWriterTest(java.lang.String name)
           
 
Method Summary
static void main(java.lang.String[] args)
           
 void setUp()
           
static junit.framework.Test suite()
           
 void testFinish()
           
 void testWritingClassDeclaration()
           
 void testWritingConstructor()
           
 void testWritingImport()
           
 void testWritingInstanceVariableDeclaration()
           
 void testWritingInstanceVariableDeclarationWithInitialValue()
           
 void testWritingMethodDeclaration()
           
 void testWritingMethodDeclarationThrowsExceptions()
           
 void testWritingPackage()
           
 void testWritingSubclassDeclaration()
           
 
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, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

myStringWriter

private java.io.StringWriter myStringWriter

myPrintWriter

private java.io.PrintWriter myPrintWriter

myCodeWriter

private CodeWriter myCodeWriter

myExpectingStringWriter

private java.io.StringWriter myExpectingStringWriter

myExpectingPrintWriter

private java.io.PrintWriter myExpectingPrintWriter
Constructor Detail

CodeWriterTest

public CodeWriterTest(java.lang.String name)
Method Detail

main

public static void main(java.lang.String[] args)

setUp

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

suite

public static junit.framework.Test suite()

testFinish

public void testFinish()
                throws java.lang.Exception
Throws:
java.lang.Exception

testWritingClassDeclaration

public void testWritingClassDeclaration()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

testWritingImport

public void testWritingImport()
                       throws java.lang.Exception
Throws:
java.lang.Exception

testWritingPackage

public void testWritingPackage()
                        throws java.lang.Exception
Throws:
java.lang.Exception

testWritingInstanceVariableDeclaration

public void testWritingInstanceVariableDeclaration()
                                            throws java.lang.Exception
Throws:
java.lang.Exception

testWritingInstanceVariableDeclarationWithInitialValue

public void testWritingInstanceVariableDeclarationWithInitialValue()
                                                            throws java.lang.Exception
Throws:
java.lang.Exception

testWritingMethodDeclaration

public void testWritingMethodDeclaration()
                                  throws java.lang.Exception
Throws:
java.lang.Exception

testWritingMethodDeclarationThrowsExceptions

public void testWritingMethodDeclarationThrowsExceptions()
                                                  throws java.lang.Exception
Throws:
java.lang.Exception

testWritingConstructor

public void testWritingConstructor()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testWritingSubclassDeclaration

public void testWritingSubclassDeclaration()
                                    throws java.lang.Exception
Throws:
java.lang.Exception