public class ValidatorServiceTest extends RhnBaseTestCase
Constructor and Description |
---|
ValidatorServiceTest() |
Modifier and Type | Method and Description |
---|---|
void |
setUp()
Called once per test method.
|
protected void |
tearDown()
Tears down the fixture, and closes the HibernateSession.
|
void |
testInvalidObject() |
void |
testValidateObject() |
void |
testValidateObjectNoValidator()
Test the method on the ValidationService where we let the
service attempt to find the XSD associated with the object
in the same directory.
|
assertContains, assertContains, assertContains, assertNotBefore, assertNotBefore, assertNotEmpty, assertNotEmpty, assertPropertyEquals, clearSession, commitAndCloseSession, createDirIfNotExists, disableLocalizationServiceLogging, enableLocalizationServiceLogging, flushAndEvict, getNow, reload, reload
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toString
public void setUp() throws java.lang.Exception
RhnBaseTestCase
setUp
in class RhnBaseTestCase
java.lang.Exception
- if an error occurs during setup.public void testValidateObject() throws java.lang.Exception
java.lang.Exception
public void testValidateObjectNoValidator() throws java.lang.Exception
java.lang.Exception
- something bad happenedpublic void testInvalidObject() throws java.lang.Exception
java.lang.Exception
protected void tearDown() throws java.lang.Exception
tearDown
in class RhnBaseTestCase
java.lang.Exception
TestCase.tearDown()
,
HibernateFactory.closeSession()