use of com.sun.xml.ws.api.WSFeatureList in project metro-jax-ws by eclipse-ee4j.
the class ClientFeatureTest method validateFeatureList.
private void validateFeatureList(Object bindingProvider, String expectedEncoding) throws Exception {
Binding binding = ((BindingProvider) bindingProvider).getBinding();
WSFeatureList list = (((WSBinding) binding).getFeatures());
// System.out.println(list);
SerializationFeature encoding = list.get(SerializationFeature.class);
if (expectedEncoding == null) {
assertNull("There should not be a SerializationFeature", encoding);
} else {
assertEquals("Mismatched encoding in SerializationFeature", expectedEncoding, encoding.getEncoding());
}
}
Aggregations