net.sf.farrago.test
Class LurqlQueryTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.eigenbase.test.DiffTestCase
net.sf.farrago.test.ResultSetTestCase
net.sf.farrago.test.FarragoTestCase
net.sf.farrago.test.FarragoSqlTest
net.sf.farrago.test.LurqlQueryTest
- All Implemented Interfaces:
- Test
public class LurqlQueryTest
- extends FarragoSqlTest
LurqlQueryTest is a JUnit harness for executing tests which are implemented
by running a script of LURQL queries and diffing the output against a
reference file containing the expected results. By default, MOF serves as
both the metamodel and the model to be queried; this can be changed within a
script. The script format is fairly limited; see the .lurql files in
farrago/testcases/lurql for examples.
- Version:
- $Id: //open/dev/farrago/src/net/sf/farrago/test/LurqlQueryTest.java#2 $
- Author:
- John V. Sichi
Methods inherited from class net.sf.farrago.test.FarragoTestCase |
forceShutdown, getJdbcUri, getSession, getTestlogRoot, getTestlogRootStatic, newConnection, newJdbcEngineDriver, restoreParameters, restoreParameters, runCleanup, runSqlLineTest, runSqlLineTest, saveParameters, saveParameters, setRefFileDiffMasks, shouldDiff, staticSetUp, staticTearDown, tearDown, tearDownImpl, wrappedSuite, wrappedSuite |
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 |
modelView
private JmiModelView modelView
args
private Map<String,Object> args
LurqlQueryTest
public LurqlQueryTest(String testName)
throws Exception
- Throws:
Exception
suite
public static Test suite()
throws Exception
- Throws:
Exception
runTest
protected void runTest()
throws Exception
- Overrides:
runTest
in class FarragoSqlTest
- Throws:
Exception
loadModelView
private JmiModelView loadModelView(String extentName)
executeAction
private void executeAction(String action,
String queryString,
PrintWriter pw)
throws Exception
- Throws:
Exception