Dresden OCL Toolkit

tudresden.ocl.test.sql
Class TestILSQLCodeGenerator

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

public class TestILSQLCodeGenerator
extends junit.framework.TestCase


Field Summary
(package private)  ModelFacade mf
           
(package private)  ORMappingScheme orm
           
(package private)  String ruleSrc
           
(package private)  ILSQLCodeGenerator theCG
           
(package private)  OclTree tree
           
(package private)  URL xmiSrc
           
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
TestILSQLCodeGenerator(String n)
           
 
Method Summary
private  boolean equal(String str1, String str2)
           
private  String getSQLCode(String constraint)
           
protected  void setUp()
           
static junit.framework.Test suite()
           
protected  void tearDown()
           
 void testPrepareDerivedTable()
           
 void testPrepareJoin()
           
 void testUniversityExampleInv()
           
 
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
 

Field Detail

orm

ORMappingScheme orm

tree

OclTree tree

mf

ModelFacade mf

xmiSrc

final URL xmiSrc

ruleSrc

String ruleSrc

theCG

ILSQLCodeGenerator theCG
Constructor Detail

TestILSQLCodeGenerator

public TestILSQLCodeGenerator(String n)
Method Detail

setUp

protected void setUp()
              throws Exception
Throws:
Exception

tearDown

protected void tearDown()
                 throws Exception
Throws:
Exception

getSQLCode

private String getSQLCode(String constraint)
                   throws IOException
Throws:
IOException

equal

private boolean equal(String str1,
                      String str2)

testPrepareJoin

public void testPrepareJoin()
                     throws Exception
Throws:
Exception

testPrepareDerivedTable

public void testPrepareDerivedTable()
                             throws Exception
Throws:
Exception

testUniversityExampleInv

public void testUniversityExampleInv()
                              throws Exception
Throws:
Exception

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.