org.jomc.model.modlet.test
Class DefaultModelValidatorTest

Package class diagram package DefaultModelValidatorTest
java.lang.Object
  extended by org.jomc.model.modlet.test.DefaultModelValidatorTest
Direct Known Subclasses:
DefaultModelValidatorTestSuite

public class DefaultModelValidatorTest
extends Object

Test cases for class org.jomc.model.modlet.DefaultModelValidator implementations.

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

Constructor Summary
DefaultModelValidatorTest()
          Creates a new DefaultModelValidatorTest instance.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultModelValidatorTest

public DefaultModelValidatorTest()
Creates a new DefaultModelValidatorTest instance.

Method Detail

getModelValidator

public DefaultModelValidator getModelValidator()
Gets the DefaultModelValidator instance tests are performed with.

Returns:
The DefaultModelValidator instance tests are performed with.
See Also:
newModelValidator()

newModelValidator

protected DefaultModelValidator newModelValidator()
Create a new DefaultModelValidator instance to test.

Returns:
A new DefaultModelValidator instance to test.
See Also:
getModelValidator()

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 to perform tests with.

Returns:
A new ModelContext instance to perform tests with.

getTestSuite

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

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

newTestSuite

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

Returns:
A new TestSuite instance holding module tests to run.

testIllegalArguments

public final void testIllegalArguments()
                                throws Exception
Throws:
Exception

testLegalArguments

public final void testLegalArguments()
                              throws Exception
Throws:
Exception

testSchemaConstraints

public final void testSchemaConstraints(String identifier)
                                 throws Exception
Runs a SchemaConstraintsTestType test.

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

testModulesConstraints

public final void testModulesConstraints(String identifier)
                                  throws Exception
Runs a ModulesConstraintsTestType test.

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


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.