|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase org.objectweb.fractal.cecilia.adl.test.CeciliaAdlTestCase org.objectweb.fractal.cecilia.adl.it.CeciliaCTestCase
public abstract class CeciliaCTestCase
Parent class for integration tests that compile ADL using the "ceciliac" command. By convention sub classes of this class should ends with "IT" and should not begin or end with "Test".
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.objectweb.fractal.cecilia.adl.test.CeciliaAdlTestCase |
---|
CeciliaAdlTestCase.FractalBackendLauncher, CeciliaAdlTestCase.StaticallyLoadedCeciliaAdlLauncher |
Field Summary | |
---|---|
protected static java.lang.String |
ASSEMBLY_BASEDIR_PROPERTY_NAME
|
protected java.io.File |
assemblyBasedir
|
protected java.io.File |
ceciliac
|
protected java.io.File |
objdir
|
protected java.lang.String[] |
options
|
Fields inherited from class org.objectweb.fractal.cecilia.adl.test.CeciliaAdlTestCase |
---|
BUILD_DIR_PROPERTY_NAME, C_FLAGS_PROPERTY_NAME, clearBuildDir, COMPILER_CMD_PROPERTY_NAME, DEFAULT_BUILD_DIR, DEFAULT_C_FLAGS, DEFAULT_LD_FLAGS, DEFAULT_SOURCE_PATH, LD_FLAGS_PROPERTY_NAME, LINKER_CMD_PROPERTY_NAME, SOURCE_PATH_PROPERTY_NAME, TEST_JOBS_PROPERTY_NAME |
Constructor Summary | |
---|---|
CeciliaCTestCase()
|
Method Summary | |
---|---|
protected int |
execCeciliaC(java.lang.String... args)
|
protected java.io.File |
getAssemblyBasedir()
|
void |
setUp()
|
protected java.io.File |
toOutputFile(java.lang.String adlName)
|
java.io.File |
tryCompileADL(java.lang.String adlName)
Compiles the given ADL using the CeciliaADL factory and throws Exception if the compilation fails. |
Methods inherited from class org.objectweb.fractal.cecilia.adl.test.CeciliaAdlTestCase |
---|
compileADL, compileAndRun, deleteDirectory, getBuildDir, getLauncher, getLauncherOptions, runTest, runTestAndReturnValue, setLauncher |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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, failNotEquals, failNotSame, failSame, format |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.String ASSEMBLY_BASEDIR_PROPERTY_NAME
protected java.io.File ceciliac
protected java.io.File assemblyBasedir
protected java.io.File objdir
protected java.lang.String[] options
Constructor Detail |
---|
public CeciliaCTestCase()
Method Detail |
---|
public void setUp() throws java.lang.Exception
setUp
in class CeciliaAdlTestCase
java.lang.Exception
public java.io.File tryCompileADL(java.lang.String adlName) throws java.lang.Exception
CeciliaAdlTestCase
tryCompileADL
in class CeciliaAdlTestCase
adlName
- the name of the ADL to compile
java.lang.Exception
- if something goes wrong.protected int execCeciliaC(java.lang.String... args) throws java.lang.Exception
java.lang.Exception
protected java.io.File toOutputFile(java.lang.String adlName)
protected java.io.File getAssemblyBasedir() throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |