Dresden OCL Toolkit

tudresden.ocl.test
Class TestParser

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended bytudresden.ocl.test.TestParser
All Implemented Interfaces:
junit.framework.Test

public class TestParser
extends junit.framework.TestCase


Field Summary
(package private)  ModelFacade facade
           
(package private)  ModelFacadeFactory facadeFactory
           
(package private)  String[] oclExpressions
           
(package private)  boolean[] syntaxOK
           
(package private)  URL testFileName
           
(package private)  boolean[] typesOK
           
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
TestParser(String s, URL testFile, ModelFacadeFactory facadeFactory)
           
 
Method Summary
protected  void getExpression(String text)
           
protected  OclTree getTree(String oclExpr)
           
protected  String readTestFile()
           
static junit.framework.Test suite()
           
 void testFromFile()
           
 
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

oclExpressions

String[] oclExpressions

syntaxOK

boolean[] syntaxOK

typesOK

boolean[] typesOK

testFileName

URL testFileName

facadeFactory

ModelFacadeFactory facadeFactory

facade

ModelFacade facade
Constructor Detail

TestParser

public TestParser(String s,
                  URL testFile,
                  ModelFacadeFactory facadeFactory)
Method Detail

testFromFile

public void testFromFile()
                  throws Exception
Throws:
Exception

getTree

protected OclTree getTree(String oclExpr)
                   throws OclException,
                          IOException
Throws:
OclException
IOException

readTestFile

protected String readTestFile()
                       throws IOException
Throws:
IOException

getExpression

protected void getExpression(String text)

suite

public static junit.framework.Test suite()

Dresden OCL Toolkit

Submit a bug
Developed at the Dresden University of Technology.
This software is published under the GNU Lesser General Public License.