Author: thomas.diesler(a)jboss.com
Date: 2008-04-18 12:57:56 -0400 (Fri, 18 Apr 2008)
New Revision: 6511
Modified:
common/trunk/src/main/java/org/jboss/wsf/test/JBossWSTestHelper.java
Log:
Imporove exception on invalid jboss.integration.target
Modified: common/trunk/src/main/java/org/jboss/wsf/test/JBossWSTestHelper.java
===================================================================
--- common/trunk/src/main/java/org/jboss/wsf/test/JBossWSTestHelper.java 2008-04-18
16:50:32 UTC (rev 6510)
+++ common/trunk/src/main/java/org/jboss/wsf/test/JBossWSTestHelper.java 2008-04-18
16:57:56 UTC (rev 6511)
@@ -211,8 +211,8 @@
// ignore, we are not running on jboss-4.2 or greater
}
- if (jbossVersion != null && integrationTarget.startsWith(jbossVersion)
== false)
- throw new IllegalStateException("Integration target mismatch, using:
" + jbossVersion);
+ if (integrationTarget.startsWith(jbossVersion) == false)
+ throw new IllegalStateException("Integration target mismatch: " +
integrationTarget + ".startsWith(" + jbossVersion + ") == false");
}
return integrationTarget;
}
Show replies by date