use of com.sun.enterprise.admin.servermgmt.xml.stringsubs.StringsubsDefinition in project Payara by payara.
the class TestStringSubstitutionEngine method testXMLLoading.
/**
* Test the loaded string-subs.xml object.
*/
@Test
public void testXMLLoading() {
StringsubsDefinition def = _engine.getStringSubsDefinition();
Assert.assertNotNull(def);
Assert.assertNotNull(def.getComponent());
Assert.assertEquals(def.getComponent().size(), 2);
Assert.assertNotNull(def.getVersion());
Assert.assertFalse(def.getChangePair().isEmpty());
}
use of com.sun.enterprise.admin.servermgmt.xml.stringsubs.StringsubsDefinition in project Payara by payara.
the class TestStringSubstitutionParser method testParser.
/**
* Test string subs XML parsing.
*/
@Test
public void testParser() {
StringsubsDefinition def = null;
try {
def = StringSubstitutionParser.parse(_configStream);
} catch (StringSubstitutionException e) {
Assert.fail("Failed to parse xml : " + _stringSubsPath, e);
}
Assert.assertNotNull(def);
Assert.assertNotNull(def.getComponent());
Assert.assertNotNull(def.getVersion());
Assert.assertFalse(def.getChangePair().isEmpty());
}
Aggregations