assertEquals("Configuration element 'profiles' not supported in an extension configuration.", e.getCause().getMessage());
}
}
public void test_digest_05_simple_default_1() throws IOException, SAXException {
Smooks smooks = new Smooks(getClass().getResourceAsStream("config_05.1.xml"));
ExecutionContext execContext;
ContentDeliveryConfig deliveryConf;
List<SmooksResourceConfiguration> configList;
// config_05.1.xml defines a default profile of "xxx", so creating the context without specifying
// a profile should exclude the "aa" resource...
execContext = smooks.createExecutionContext();
deliveryConf = execContext.getDeliveryConfig();
configList = deliveryConf.getSmooksResourceConfigurations("aa");
assertNull(configList);
// config_05.1.xml defines a default profile of "xxx", so creating the context by specifying
// a profile of "xxx" should include the "aa" resource...
execContext = smooks.createExecutionContext("xxx");
deliveryConf = execContext.getDeliveryConfig();
configList = deliveryConf.getSmooksResourceConfigurations("aa");
assertNotNull(configList);
// Make sure the resource has the other default settings...