org.ourgrid.common.spec.grammar.io
Class GalsGrammarReaderTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.ourgrid.common.spec.grammar.io.GalsGrammarReaderTest
All Implemented Interfaces:
junit.framework.Test, CommonTest, FastTest, PreCommitTest, SelectiveTest, StressTest

public class GalsGrammarReaderTest
extends junit.framework.TestCase
implements CommonTest

Created on 24/05/2004


Constructor Summary
GalsGrammarReaderTest(java.lang.String arg0)
          Constructor for GalsGrammarReaderTest.
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testReadEmptyFile()
           
 void testReaderWithGridGrammar_1()
           
 void testReadincompleteBlocksGrammar()
           
 void testReadWithNonExistentFile()
           
 void testReadWrongRuleGrammar()
           
 void testReadWrongRuleGrammar2()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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
 
Methods inherited from interface junit.framework.Test
countTestCases, run
 

Constructor Detail

GalsGrammarReaderTest

public GalsGrammarReaderTest(java.lang.String arg0)
Constructor for GalsGrammarReaderTest.

Parameters:
arg0 -
Method Detail

setUp

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

tearDown

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

testReadWithNonExistentFile

public void testReadWithNonExistentFile()
                                 throws MalformedGrammarException
Throws:
MalformedGrammarException

testReadEmptyFile

public void testReadEmptyFile()
                       throws java.io.FileNotFoundException,
                              java.io.IOException
Throws:
java.io.FileNotFoundException
java.io.IOException

testReadWrongRuleGrammar

public void testReadWrongRuleGrammar()
                              throws java.io.FileNotFoundException,
                                     java.io.IOException
Throws:
java.io.FileNotFoundException
java.io.IOException

testReadincompleteBlocksGrammar

public void testReadincompleteBlocksGrammar()
                                     throws java.io.FileNotFoundException,
                                            java.io.IOException
Throws:
java.io.FileNotFoundException
java.io.IOException

testReadWrongRuleGrammar2

public void testReadWrongRuleGrammar2()
                               throws java.io.FileNotFoundException,
                                      java.io.IOException
Throws:
java.io.FileNotFoundException
java.io.IOException

testReaderWithGridGrammar_1

public void testReaderWithGridGrammar_1()
                                 throws MalformedGrammarException,
                                        java.io.FileNotFoundException,
                                        java.io.IOException
Throws:
MalformedGrammarException
java.io.FileNotFoundException
java.io.IOException