org.jomc.model.test
Class ModulesTest

Package class diagram package ModulesTest
java.lang.Object
  extended by org.jomc.model.test.ModulesTest
Direct Known Subclasses:
ModulesTestSuite

public class ModulesTest
extends Object

Test cases for class org.jomc.model.Modules.

Version:
$JOMC: ModulesTest.java 4200 2012-01-25 09:46:13Z schulte2005 $
Author:
Christian Schulte 1.0

Constructor Summary
ModulesTest()
          Creates a new ModulesTest instance.
 
Method Summary
static void assertEquals(Dependencies expected, Dependencies computed)
           
static void assertEquals(Dependency expected, Dependency computed)
           
static void assertEquals(Implementation expected, Implementation computed)
           
static void assertEquals(Implementations expected, Implementations computed)
           
static void assertEquals(Instance expected, Instance computed)
           
static void assertEquals(Message expected, Message computed)
           
static void assertEquals(Messages expected, Messages computed)
           
static void assertEquals(ModelObject expected, ModelObject computed)
           
static void assertEquals(Properties expected, Properties computed)
           
static void assertEquals(Property expected, Property computed)
           
static void assertEquals(SpecificationReference expected, SpecificationReference computed)
           
static void assertEquals(Specification expected, Specification computed)
           
static void assertEquals(Specifications expected, Specifications computed)
           
static void assertEquals(Texts expected, Texts computed)
           
 ModelContext getModelContext()
          Gets the ModelContext instance tests are performed with.
 TestSuite getTestSuite()
          Gets the TestSuite holding the module tests to run.
protected  ModelContext newModelContext()
          Creates a new ModelContext instance tests are performed with.
protected  TestSuite newTestSuite()
          Creates a new TestSuite holding module tests to run.
 void testImplementation(String identifier)
          Runs a ImplementationTestType test.
 void testInstance(String identifier)
          Runs a InstanceTestType test.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModulesTest

public ModulesTest()
Creates a new ModulesTest instance.

Method Detail

getTestSuite

public TestSuite getTestSuite()
Gets the TestSuite holding the module tests to run.

Returns:
The TestSuite holding the module tests to run.
See Also:
newTestSuite()

newTestSuite

protected TestSuite newTestSuite()
Creates a new TestSuite holding module tests to run.

Returns:
A new TestSuite holding module tests to run.
See Also:
getTestSuite()

getModelContext

public ModelContext getModelContext()
Gets the ModelContext instance tests are performed with.

Returns:
The ModelContext instance tests are performed with.
See Also:
newModelContext()

newModelContext

protected ModelContext newModelContext()
Creates a new ModelContext instance tests are performed with.

Returns:
A new ModelContext instance tests are performed with.
See Also:
getModelContext()

testImplementation

public final void testImplementation(String identifier)
                              throws Exception
Runs a ImplementationTestType test.

Parameters:
identifier - The identifier of the ImplementationTestType to run.
Throws:
Exception - if running the test fails.

testInstance

public final void testInstance(String identifier)
                        throws Exception
Runs a InstanceTestType test.

Parameters:
identifier - The identifier of the InstanceTestType to run.
Throws:
Exception - if running the test fails.

assertEquals

public static void assertEquals(ModelObject expected,
                                ModelObject computed)
                         throws Exception
Throws:
Exception

assertEquals

public static void assertEquals(Instance expected,
                                Instance computed)
                         throws Exception
Throws:
Exception

assertEquals

public static void assertEquals(Implementations expected,
                                Implementations computed)
                         throws Exception
Throws:
Exception

assertEquals

public static void assertEquals(Implementation expected,
                                Implementation computed)
                         throws Exception
Throws:
Exception

assertEquals

public static void assertEquals(Specifications expected,
                                Specifications computed)
                         throws Exception
Throws:
Exception

assertEquals

public static void assertEquals(SpecificationReference expected,
                                SpecificationReference computed)
                         throws Exception
Throws:
Exception

assertEquals

public static void assertEquals(Specification expected,
                                Specification computed)
                         throws Exception
Throws:
Exception

assertEquals

public static void assertEquals(Dependencies expected,
                                Dependencies computed)
                         throws Exception
Throws:
Exception

assertEquals

public static void assertEquals(Dependency expected,
                                Dependency computed)
                         throws Exception
Throws:
Exception

assertEquals

public static void assertEquals(Messages expected,
                                Messages computed)
                         throws Exception
Throws:
Exception

assertEquals

public static void assertEquals(Message expected,
                                Message computed)
                         throws Exception
Throws:
Exception

assertEquals

public static void assertEquals(Texts expected,
                                Texts computed)
                         throws Exception
Throws:
Exception

assertEquals

public static void assertEquals(Properties expected,
                                Properties computed)
                         throws Exception
Throws:
Exception

assertEquals

public static void assertEquals(Property expected,
                                Property computed)
                         throws Exception
Throws:
Exception


Copyright © 2005-2012 The JOMC Project. All Rights Reserved.Get JOMC at SourceForge.net. Fast, secure and Free Open Source software downloads
Please note that this documentation is maintained by non-native english speaking authors. As such, you may encounter phrases or wordings which seem imprecise or may even have a totally different meaning to native english speaking readers than what the individual author was trying to express. If you are a native english speaking reader and find any such phrases or wordings we kindly ask you to send an email to the corresponding author and help us improve this documentation in order to avoid misunderstandings. You will find the authors' email addresses at the top of each class. Please accept our apologies for any inconvenience caused.