org.objectweb.fractal.cecilia.adl.test
Class CreateCeciliaFactoryTest

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.test.CreateCeciliaFactoryTest
All Implemented Interfaces:
junit.framework.Test

public class CreateCeciliaFactoryTest
extends CeciliaAdlTestCase

An integration test case to check that CeciliaADL factory can be indeed instantiated using different FractalADL Factories.

Author:
Alessio Pace

Nested Class Summary
 
Nested classes/interfaces inherited from class org.objectweb.fractal.cecilia.adl.test.CeciliaAdlTestCase
CeciliaAdlTestCase.FractalBackendLauncher, CeciliaAdlTestCase.StaticallyLoadedCeciliaAdlLauncher
 
Field Summary
 
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
CreateCeciliaFactoryTest()
           
 
Method Summary
 boolean containsExternalInterface(org.objectweb.fractal.api.Component pluginSelector, java.lang.String itf)
           
 void testCompileWithAFractalCompiler()
          This integration tests load a CeciliaADL toolchain as a Fractal application, compiles with it the HelloworldShared example, and additionally it performs few checks on the loaded components and the bindings between them.
 void testCreateCeciliaFactoryUsingBootstrapFactory()
          Just creates a CeciliaADL factory using the default bootstrap factory.
 void testCreateCeciliaFactoryUsingFractalBackendFactory()
           
 void testCreateCeciliaFactoryUsingJavaBackendFactory()
          Just creates a CeciliaADL factory as a Fractal application.
 
Methods inherited from class org.objectweb.fractal.cecilia.adl.test.CeciliaAdlTestCase
compileADL, compileAndRun, deleteDirectory, getBuildDir, getLauncher, getLauncherOptions, runTest, runTestAndReturnValue, setLauncher, setUp, tryCompileADL
 
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
 

Constructor Detail

CreateCeciliaFactoryTest

public CreateCeciliaFactoryTest()
Method Detail

testCreateCeciliaFactoryUsingBootstrapFactory

public void testCreateCeciliaFactoryUsingBootstrapFactory()
                                                   throws java.lang.Exception
Just creates a CeciliaADL factory using the default bootstrap factory. The toolchain after is NOT used to compile an ADL, so plugins are not loaded.

Throws:
java.lang.Exception

testCreateCeciliaFactoryUsingJavaBackendFactory

public void testCreateCeciliaFactoryUsingJavaBackendFactory()
                                                     throws java.lang.Exception
Just creates a CeciliaADL factory as a Fractal application. The toolchain after is NOT used to compile an ADL, so plugins are not loaded.

Throws:
java.lang.Exception

testCreateCeciliaFactoryUsingFractalBackendFactory

public void testCreateCeciliaFactoryUsingFractalBackendFactory()
                                                        throws java.lang.Exception
Throws:
java.lang.Exception

testCompileWithAFractalCompiler

public void testCompileWithAFractalCompiler()
                                     throws java.lang.Exception
This integration tests load a CeciliaADL toolchain as a Fractal application, compiles with it the HelloworldShared example, and additionally it performs few checks on the loaded components and the bindings between them.

Throws:
java.lang.Exception

containsExternalInterface

public boolean containsExternalInterface(org.objectweb.fractal.api.Component pluginSelector,
                                         java.lang.String itf)


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