foundry-0.9.1

foundry.io
Class TestCaseCommentStrippingBufferedReader

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--foundry.io.TestCaseCommentStrippingBufferedReader
All Implemented Interfaces:
junit.framework.Test

public class TestCaseCommentStrippingBufferedReader
extends junit.framework.TestCase


Field Summary
private static String[] expectedLines
           
private  File file
           
private static String[] rawLines
           
private  CommentStrippingBufferedReader reader
           
 
Fields inherited from class junit.framework.TestCase
fName
 
Constructor Summary
TestCaseCommentStrippingBufferedReader(String name)
           
 
Method Summary
private  void performTestReadArrayOnBrokenSystems()
           
private  void performTestReadArrayOnNormalSystems()
           
 void setUp()
           
 void tearDown()
           
 void testPathologicalRead()
           
 void testRead()
           
 void testReadArray()
           
 void testReadLine()
           
private  void writeTestFile(File file)
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, name, run, run, runBare, runTest, toString
 
Methods inherited from class junit.framework.Assert
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, fail, fail, failNotEquals, failNotSame
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

file

private File file

reader

private CommentStrippingBufferedReader reader

rawLines

private static final String[] rawLines

expectedLines

private static final String[] expectedLines
Constructor Detail

TestCaseCommentStrippingBufferedReader

public TestCaseCommentStrippingBufferedReader(String name)
Method Detail

setUp

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

writeTestFile

private void writeTestFile(File file)
                    throws IOException

testReadLine

public void testReadLine()

testRead

public void testRead()

testPathologicalRead

public void testPathologicalRead()

testReadArray

public void testReadArray()

performTestReadArrayOnNormalSystems

private void performTestReadArrayOnNormalSystems()

performTestReadArrayOnBrokenSystems

private void performTestReadArrayOnBrokenSystems()

tearDown

public void tearDown()
              throws Exception
Overrides:
tearDown in class junit.framework.TestCase

foundry-0.9.1

Copyright © 2000 - Laird Jarrett Nelson