Methods Summary |
---|
protected void | setUp()
|
protected void | tearDown()
|
public void | testUnmarshallComplexPolicyModelWithAssertionParameters()
PolicySourceModel model = unmarshallModel("complex_policy/assertion_parameters1.xml");
|
public void | testUnmarshallComplexPolicyModelWithAssertionParametersWithValues()
PolicySourceModel model = unmarshallModel("bug_reproduction/assertion_parameter_value_unmarshalling.xml");
|
public void | testUnmarshallPolicyModelWithPolicyReference()
PolicySourceModel model = unmarshallModel("bug_reproduction/policy_reference1.xml");
|
public void | testUnmarshallPolicyModelWithWsuId()
PolicySourceModel model = unmarshallModel("complex_policy/policy_with_wsuid.xml");
assertEquals("Unmarshalled wsu:Id is not the same as expected", "testWsuId", model.getPolicyId());
|
public void | testUnmarshallPolicyModelWithXmlId()
PolicySourceModel model = unmarshallModel("complex_policy/policy_with_xmlid.xml");
assertEquals("Unmarshalled xml:id is not the same as expected", "testXmlId", model.getPolicyId());
|
public void | testUnmarshallPolicyModelWithXmlIdAndWsuId()
try {
PolicySourceModel model = unmarshallModel("complex_policy/policy_with_xmlid_and_wsuid.xml");
fail("Should throw an exception");
} catch (PolicyException e) {
// ok.
} catch (Exception e) {
fail("Should throw PolicyException instead: " + e);
}
|
public void | testUnmarshallSingleComplexPolicyModel()
PolicySourceModel model = unmarshallModel("complex_policy/nested_assertions_with_alternatives.xml");
|
public void | testUnmarshallSingleSimplePolicyModel()
PolicySourceModel model = unmarshallModel("single_alternative_policy/policy5.xml");
|
private PolicySourceModel | unmarshallModel(java.lang.String resource)
Reader reader = PolicyResourceLoader.getResourceReader(resource);
PolicySourceModel model = xmlUnmarshaller.unmarshalModel(reader);
reader.close();
return model;
|