net.sf.farrago.test
Class JmiMemTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.eigenbase.test.DiffTestCase
              extended by net.sf.farrago.test.ResultSetTestCase
                  extended by net.sf.farrago.test.FarragoTestCase
                      extended by net.sf.farrago.test.JmiMemTest
All Implemented Interfaces:
Test

public class JmiMemTest
extends FarragoTestCase

JmiMemTest is a unit test for JmiMemFactory.

NOTE: this test lives here rather than under org.eigenbase because it currently depends on MDR for the metamodel JMI implementation (even though JmiMemFactory itself provides a JMI implementation for the model objects being tested).

Version:
$Id: //open/dev/farrago/src/net/sf/farrago/test/JmiMemTest.java#22 $
Author:
John V. Sichi

Nested Class Summary
private  class JmiMemTest.FactoryImpl
           
private  class JmiMemTest.FarragoMemFactory
           
private  class JmiMemTest.FarragoMemRepos
           
 
Nested classes/interfaces inherited from class net.sf.farrago.test.FarragoTestCase
FarragoTestCase.Cleanup, FarragoTestCase.CleanupFactory
 
Field Summary
private static String COLUMN_NAME
           
private static String COLUMN_NAME_2
           
private static String TABLE_NAME
           
 
Fields inherited from class net.sf.farrago.test.FarragoTestCase
allocOwner, connection, preparedStmt, repos, stmt, tracer
 
Fields inherited from class net.sf.farrago.test.ResultSetTestCase
resultSet
 
Fields inherited from class org.eigenbase.test.DiffTestCase
logFile, logOutputStream, refFile
 
Constructor Summary
JmiMemTest(String testName)
          Creates a new JmiMemTest object.
 
Method Summary
private  FemTupleDescriptor makeTupleDescriptor(JmiMemTest.FarragoMemRepos factory)
           
static Test suite()
           
 void testBreakOneToOneAssoc()
           
 void testClassValuedAttributes()
           
 void testClone()
           
 void testEarlyBinding()
           
 void testExportImport()
           
 void testMassiveExportImport()
           
 void testRefImmediatePackage()
           
 void testRefIsInstanceOf()
           
 
Methods inherited from class net.sf.farrago.test.FarragoTestCase
forceShutdown, getJdbcUri, getSession, getTestlogRoot, getTestlogRootStatic, newConnection, newJdbcEngineDriver, restoreParameters, restoreParameters, runCleanup, runSqlLineTest, runSqlLineTest, saveParameters, saveParameters, setRefFileDiffMasks, setUp, shouldDiff, staticSetUp, staticTearDown, tearDown, tearDownImpl, wrappedSuite, wrappedSuite
 
Methods inherited from class net.sf.farrago.test.ResultSetTestCase
compareResultList, compareResultLists, compareResultSet, compareResultSetWithDelta, compareResultSetWithPattern, getResultSetCount
 
Methods inherited from class org.eigenbase.test.DiffTestCase
addDiffMask, addIgnorePattern, diffFile, diffLines, diffTestLog, fileContents, openTestLog, openTestLogOutputStream, setGC, setVerbose
 
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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TABLE_NAME

private static final String TABLE_NAME
See Also:
Constant Field Values

COLUMN_NAME

private static final String COLUMN_NAME
See Also:
Constant Field Values

COLUMN_NAME_2

private static final String COLUMN_NAME_2
See Also:
Constant Field Values
Constructor Detail

JmiMemTest

public JmiMemTest(String testName)
           throws Exception
Creates a new JmiMemTest object.

Parameters:
testName - JUnit test name
Throws:
Exception
Method Detail

suite

public static Test suite()

testClassValuedAttributes

public void testClassValuedAttributes()

makeTupleDescriptor

private FemTupleDescriptor makeTupleDescriptor(JmiMemTest.FarragoMemRepos factory)

testEarlyBinding

public void testEarlyBinding()
                      throws Exception
Throws:
Exception

testBreakOneToOneAssoc

public void testBreakOneToOneAssoc()
                            throws Exception
Throws:
Exception

testExportImport

public void testExportImport()

testMassiveExportImport

public void testMassiveExportImport()
                             throws Exception
Throws:
Exception

testRefImmediatePackage

public void testRefImmediatePackage()

testRefIsInstanceOf

public void testRefIsInstanceOf()

testClone

public void testClone()