use of com.sun.xml.ws.policy.spi.AssertionCreationException in project metro-jax-ws by eclipse-ee4j.
the class ManagedServiceAssertionTest method testNoId.
/**
* Test of getId method, of class ManagedServiceAssertion.
*/
public void testNoId() {
final HashMap<QName, String> attributes = new HashMap<QName, String>();
final AssertionData data = AssertionData.createAssertionData(ManagedServiceAssertion.MANAGED_SERVICE_QNAME, null, attributes, false, false);
try {
ManagedServiceAssertion instance = new ManagedServiceAssertion(data, null);
fail("Expected AssertionCreationException because the ServerManagedServiceAssertion requires an id attribute.");
} catch (AssertionCreationException e) {
// expected
}
}
Aggregations