Author: jim.ma
Date: 2013-03-13 01:35:16 -0400 (Wed, 13 Mar 2013)
New Revision: 17390
Modified:
shared-testsuite/trunk/src/main/java/org/jboss/wsf/test/JBossWSTestHelper.java
Log:
[JBWS-3606]:Use package name to identify the stack
Modified: shared-testsuite/trunk/src/main/java/org/jboss/wsf/test/JBossWSTestHelper.java
===================================================================
---
shared-testsuite/trunk/src/main/java/org/jboss/wsf/test/JBossWSTestHelper.java 2013-03-11
11:13:22 UTC (rev 17389)
+++
shared-testsuite/trunk/src/main/java/org/jboss/wsf/test/JBossWSTestHelper.java 2013-03-13
05:35:16 UTC (rev 17390)
@@ -67,9 +67,7 @@
private static MBeanServerConnection server;
private static String integrationTarget;
- private static String implVendor;
- private static String implTitle;
- private static String implVersion;
+ private static String implInfo;
private static String testArchiveDir;
private static String testResourcesDir;
@@ -161,31 +159,24 @@
public static boolean isIntegrationNative()
{
- String vendor = getImplementationVendor();
+ String vendor = getImplementationInfo();
return vendor.toLowerCase().indexOf("jboss") != -1;
}
public static boolean isIntegrationCXF()
{
- String vendor = getImplementationVendor();
+ String vendor = getImplementationInfo();
return vendor.toLowerCase().indexOf("apache") != -1;
}
- private static String getImplementationVendor()
+ private static String getImplementationInfo()
{
- if (implVendor == null)
+ if (implInfo == null)
{
Object obj = getImplementationObject();
- implVendor = obj.getClass().getPackage().getImplementationVendor();
- if (implVendor == null)
- implVendor = getImplementationPackage();
-
- implTitle = obj.getClass().getPackage().getImplementationTitle();
- implVersion = obj.getClass().getPackage().getImplementationVersion();
-
- System.out.println(implVendor + ", " + implTitle + ", " +
implVersion);
+ implInfo = obj.getClass().getPackage().getName();
}
- return implVendor;
+ return implInfo;
}
private static Object getImplementationObject()
Show replies by date