public class ModulesTest extends Object
org.jomc.model.Modules
.Constructor and Description |
---|
ModulesTest()
Creates a new
ModulesTest instance. |
Modifier and Type | Method and Description |
---|---|
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. |
public ModulesTest()
ModulesTest
instance.public TestSuite getTestSuite()
TestSuite
holding the module tests to run.TestSuite
holding the module tests to run.newTestSuite()
protected TestSuite newTestSuite()
TestSuite
holding module tests to run.TestSuite
holding module tests to run.getTestSuite()
public ModelContext getModelContext()
ModelContext
instance tests are performed with.ModelContext
instance tests are performed with.newModelContext()
protected ModelContext newModelContext()
ModelContext
instance tests are performed with.ModelContext
instance tests are performed with.getModelContext()
public final void testImplementation(String identifier) throws Exception
ImplementationTestType
test.identifier
- The identifier of the ImplementationTestType
to run.Exception
- if running the test fails.public final void testInstance(String identifier) throws Exception
InstanceTestType
test.identifier
- The identifier of the InstanceTestType
to run.Exception
- if running the test fails.public static void assertEquals(ModelObject expected, ModelObject computed) throws Exception
Exception
public static void assertEquals(Instance expected, Instance computed) throws Exception
Exception
public static void assertEquals(Implementations expected, Implementations computed) throws Exception
Exception
public static void assertEquals(Implementation expected, Implementation computed) throws Exception
Exception
public static void assertEquals(Specifications expected, Specifications computed) throws Exception
Exception
public static void assertEquals(SpecificationReference expected, SpecificationReference computed) throws Exception
Exception
public static void assertEquals(Specification expected, Specification computed) throws Exception
Exception
public static void assertEquals(Dependencies expected, Dependencies computed) throws Exception
Exception
public static void assertEquals(Dependency expected, Dependency computed) throws Exception
Exception
public static void assertEquals(Messages expected, Messages computed) throws Exception
Exception
public static void assertEquals(Message expected, Message computed) throws Exception
Exception
public static void assertEquals(Texts expected, Texts computed) throws Exception
Exception
public static void assertEquals(Properties expected, Properties computed) throws Exception
Exception
public static void assertEquals(Property expected, Property computed) throws Exception
Exception
Copyright © 2005-2013 The JOMC Project. All Rights Reserved.