use of com.sun.xml.ws.policy.sourcemodel.AssertionData in project metro-jax-ws by eclipse-ee4j.
the class ManagedClientAssertionTest method testIsManagementEnabled.
public void testIsManagementEnabled() throws AssertionCreationException {
final HashMap<QName, String> attributes = new HashMap<QName, String>();
attributes.put(ID_ATTRIBUTE_QNAME, "id1");
final AssertionData data = AssertionData.createAssertionData(ManagedClientAssertion.MANAGED_CLIENT_QNAME, null, attributes, false, false);
final ManagedClientAssertion instance = new ManagedClientAssertion(data, null);
final boolean result = instance.isManagementEnabled();
assertFalse(result);
}
use of com.sun.xml.ws.policy.sourcemodel.AssertionData in project metro-jax-ws by eclipse-ee4j.
the class ManagedClientAssertionTest method testMonitoringAttribute.
public void testMonitoringAttribute() throws AssertionCreationException {
final HashMap<QName, String> attributes = new HashMap<QName, String>();
attributes.put(ID_ATTRIBUTE_QNAME, "id1");
final AssertionData data = AssertionData.createAssertionData(ManagedClientAssertion.MANAGED_CLIENT_QNAME, null, attributes, false, false);
final ManagedClientAssertion instance = new ManagedClientAssertion(data, null);
final Setting result = instance.monitoringAttribute();
assertSame(result, Setting.NOT_SET);
}
use of com.sun.xml.ws.policy.sourcemodel.AssertionData in project metro-jax-ws by eclipse-ee4j.
the class ManagedClientAssertionTest method testIsManagementEnabledOn.
public void testIsManagementEnabledOn() throws AssertionCreationException {
final HashMap<QName, String> attributes = new HashMap<QName, String>();
attributes.put(ID_ATTRIBUTE_QNAME, "id1");
attributes.put(MANAGEMENT_ATTRIBUTE_QNAME, "on");
final AssertionData data = AssertionData.createAssertionData(ManagedClientAssertion.MANAGED_CLIENT_QNAME, null, attributes, false, false);
final ManagedClientAssertion instance = new ManagedClientAssertion(data, null);
final boolean result = instance.isManagementEnabled();
assertFalse(result);
}
use of com.sun.xml.ws.policy.sourcemodel.AssertionData in project metro-jax-ws by eclipse-ee4j.
the class ManagedClientAssertionTest method testNoIdManagementDisabled.
/**
* Test of getId method, of class ManagedClientAssertion.
*/
public void testNoIdManagementDisabled() throws AssertionCreationException {
final HashMap<QName, String> attributes = new HashMap<QName, String>();
attributes.put(MANAGEMENT_ATTRIBUTE_QNAME, "false");
final AssertionData data = AssertionData.createAssertionData(ManagedClientAssertion.MANAGED_CLIENT_QNAME, null, attributes, false, false);
ManagedClientAssertion instance = new ManagedClientAssertion(data, null);
String result = instance.getId();
assertNull(result);
}
use of com.sun.xml.ws.policy.sourcemodel.AssertionData in project metro-jax-ws by eclipse-ee4j.
the class ManagedServiceAssertionTest method testIsManagementEnabledFalse.
public void testIsManagementEnabledFalse() throws AssertionCreationException {
final HashMap<QName, String> attributes = new HashMap<QName, String>();
attributes.put(ID_ATTRIBUTE_QNAME, "id1");
attributes.put(MANAGEMENT_ATTRIBUTE_QNAME, "false");
final AssertionData data = AssertionData.createAssertionData(ManagedServiceAssertion.MANAGED_SERVICE_QNAME, null, attributes, false, false);
final ManagedServiceAssertion instance = new ManagedServiceAssertion(data, null);
final boolean result = instance.isManagementEnabled();
assertFalse(result);
}
Aggregations