public class DefaultModelValidatorTest extends Object
org.jomc.model.modlet.DefaultModelValidator
implementations.Constructor and Description |
---|
DefaultModelValidatorTest()
Creates a new
DefaultModelValidatorTest instance. |
Modifier and Type | Method and Description |
---|---|
ModelContext |
getModelContext()
Gets the
ModelContext instance tests are performed with. |
DefaultModelValidator |
getModelValidator()
Gets the
DefaultModelValidator instance tests are performed with. |
TestSuite |
getTestSuite()
Gets the
TestSuite instance holding module tests to run. |
protected ModelContext |
newModelContext()
Creates a new
ModelContext instance to perform tests with. |
protected DefaultModelValidator |
newModelValidator()
Create a new
DefaultModelValidator instance to test. |
protected TestSuite |
newTestSuite()
Creates a new
TestSuite instance holding module tests to run. |
void |
testIllegalArguments() |
void |
testLegalArguments() |
void |
testModulesConstraints(String identifier)
Runs a
ModulesConstraintsTestType test. |
void |
testSchemaConstraints(String identifier)
Runs a
SchemaConstraintsTestType test. |
public DefaultModelValidatorTest()
DefaultModelValidatorTest
instance.public DefaultModelValidator getModelValidator()
DefaultModelValidator
instance tests are performed with.DefaultModelValidator
instance tests are performed with.newModelValidator()
protected DefaultModelValidator newModelValidator()
DefaultModelValidator
instance to test.DefaultModelValidator
instance to test.getModelValidator()
public ModelContext getModelContext()
ModelContext
instance tests are performed with.ModelContext
instance tests are performed with.newModelContext()
protected ModelContext newModelContext()
ModelContext
instance to perform tests with.ModelContext
instance to perform tests with.public TestSuite getTestSuite()
TestSuite
instance holding module tests to run.TestSuite
instance holding module tests to run.newTestSuite()
protected TestSuite newTestSuite()
TestSuite
instance holding module tests to run.TestSuite
instance holding module tests to run.public final void testIllegalArguments() throws Exception
Exception
public final void testLegalArguments() throws Exception
Exception
public final void testSchemaConstraints(String identifier) throws Exception
SchemaConstraintsTestType
test.identifier
- The identifier of the SchemaConstraintsTestType
to run.Exception
- if running the test fails.public final void testModulesConstraints(String identifier) throws Exception
ModulesConstraintsTestType
test.identifier
- The identifier of the ModulesConstraintsTestType
to run.Exception
- if running the test fails.Copyright © 2005-2013 The JOMC Project. All Rights Reserved.