org.objectweb.fractal.cecilia.adl.it
Class CeciliaCTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.objectweb.fractal.cecilia.adl.test.CeciliaAdlTestCase
              extended by org.objectweb.fractal.cecilia.adl.it.CeciliaCTestCase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
SimpleIT

public abstract class CeciliaCTestCase
extends CeciliaAdlTestCase

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

ASSEMBLY_BASEDIR_PROPERTY_NAME

protected static final java.lang.String ASSEMBLY_BASEDIR_PROPERTY_NAME
See Also:
Constant Field Values

ceciliac

protected java.io.File ceciliac

assemblyBasedir

protected java.io.File assemblyBasedir

objdir

protected java.io.File objdir

options

protected java.lang.String[] options
Constructor Detail

CeciliaCTestCase

public CeciliaCTestCase()
Method Detail

setUp

public void setUp()
           throws java.lang.Exception
Overrides:
setUp in class CeciliaAdlTestCase
Throws:
java.lang.Exception

tryCompileADL

public java.io.File tryCompileADL(java.lang.String adlName)
                           throws java.lang.Exception
Description copied from class: CeciliaAdlTestCase
Compiles the given ADL using the CeciliaADL factory and throws Exception if the compilation fails.

Overrides:
tryCompileADL in class CeciliaAdlTestCase
Parameters:
adlName - the name of the ADL to compile
Returns:
the File returned by the factory.
Throws:
java.lang.Exception - if something goes wrong.

execCeciliaC

protected int execCeciliaC(java.lang.String... args)
                    throws java.lang.Exception
Throws:
java.lang.Exception

toOutputFile

protected java.io.File toOutputFile(java.lang.String adlName)

getAssemblyBasedir

protected java.io.File getAssemblyBasedir()
                                   throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2007-2009 ObjectWeb Consortium. All Rights Reserved.