org.shapelogic.streamlogic
Class LoadLetterStreamsTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.shapelogic.streamlogic.LoadLetterStreamsTest
All Implemented Interfaces:
junit.framework.Test

public class LoadLetterStreamsTest
extends junit.framework.TestCase

Test LoadLetterStreams.
Based on LetterTaskTest that is task based.
How should the rules be translated?
I could generate the Letter XOr stream or maybe the individual Boolean streams.

Author:
Sami Badawi

Field Summary
static java.lang.String FILE_NAME_KEY
           
static java.lang.String[] LETTERS_TO_TEST
           
static java.lang.String QUOTE
           
 
Constructor Summary
LoadLetterStreamsTest()
           
 
Method Summary
 org.shapelogic.streams.ListStream<org.shapelogic.polygon.Polygon> makeRawPolygonsStream(java.lang.String fileName)
          Based on a fileName it creates the lazy streams for polygons and rawPolygons.
 void oneLetterMatch(java.lang.String letter, boolean onlyMatchAgainstSelf)
           
 void printAnnotaions(org.shapelogic.polygon.Polygon polygon)
           
 void setUp()
           
 void te_stAllLettersMatchFromRules()
          These rules do not work since SVG does not create annotations yet.
 void testAllStraightLettersMatchFromRules()
           
 void testLetterAMatch()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FILE_NAME_KEY

public static final java.lang.String FILE_NAME_KEY
See Also:
Constant Field Values

QUOTE

public static final java.lang.String QUOTE
See Also:
Constant Field Values

LETTERS_TO_TEST

public static final java.lang.String[] LETTERS_TO_TEST
Constructor Detail

LoadLetterStreamsTest

public LoadLetterStreamsTest()
Method Detail

setUp

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

testLetterAMatch

public void testLetterAMatch()

printAnnotaions

public void printAnnotaions(org.shapelogic.polygon.Polygon polygon)

oneLetterMatch

public void oneLetterMatch(java.lang.String letter,
                           boolean onlyMatchAgainstSelf)

te_stAllLettersMatchFromRules

public void te_stAllLettersMatchFromRules()
These rules do not work since SVG does not create annotations yet.


testAllStraightLettersMatchFromRules

public void testAllStraightLettersMatchFromRules()

makeRawPolygonsStream

public org.shapelogic.streams.ListStream<org.shapelogic.polygon.Polygon> makeRawPolygonsStream(java.lang.String fileName)
Based on a fileName it creates the lazy streams for polygons and rawPolygons.



Copyright © 2009. All Rights Reserved.