Author: alessio.soldano(a)jboss.com
Date: 2012-06-18 19:13:01 -0400 (Mon, 18 Jun 2012)
New Revision: 16413
Modified:
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/smoke/tools/WSConsumerPlugin.java
Log:
[JBWS-3520] Improving target test to check for jaxws 2.1 code
Modified:
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/smoke/tools/WSConsumerPlugin.java
===================================================================
---
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/smoke/tools/WSConsumerPlugin.java 2012-06-18
23:12:07 UTC (rev 16412)
+++
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/smoke/tools/WSConsumerPlugin.java 2012-06-18
23:13:01 UTC (rev 16413)
@@ -27,6 +27,7 @@
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.ws.WebServiceFeature;
import java.io.*;
+import java.lang.reflect.Constructor;
import java.lang.reflect.Method;
import java.net.MalformedURLException;
import java.net.URL;
@@ -319,6 +320,18 @@
Class<?> sei =
loader.loadClass("org.jboss.test.ws.tools.testTarget.EndpointInterface");
assertTrue("@XmlSeeAlso expected on SEI (types not referenced by the Port in
the wsdl)", sei.isAnnotationPresent(XmlSeeAlso.class));
+
+ boolean featureConstructor = false;
+ for (Constructor<?> c : service.getConstructors()) {
+ for (Class<?> pt : c.getParameterTypes())
+ {
+ if (pt.isArray() &&
pt.getComponentType().equals(WebServiceFeature.class)) {
+ featureConstructor = true;
+ break;
+ }
+ }
+ }
+ assertFalse("Found JAXWS 2.2 constructor", featureConstructor);
}
/**
Show replies by date