Author: mbenson
Date: Sat Sep 20 21:34:33 2014
New Revision: 1626499
URL: http://svn.apache.org/r1626499
Log:
ignore test that makes assumptions about the thread stack on IBM JDKs
Modified:
commons/proper/weaver/trunk/ant/test/pom.xml
commons/proper/weaver/trunk/example/src/test/java/org/apache/commons/weaver/privilizer/example/UsingBlueprintsTest.java
Modified: commons/proper/weaver/trunk/ant/test/pom.xml
URL:
http://svn.apache.org/viewvc/commons/proper/weaver/trunk/ant/test/pom.xml?rev=1626499&r1=1626498&r2=1626499&view=diff
==============================================================================
--- commons/proper/weaver/trunk/ant/test/pom.xml (original)
+++ commons/proper/weaver/trunk/ant/test/pom.xml Sat Sep 20 21:34:33 2014
@@ -48,6 +48,11 @@ under the License.
<scope>provided</scope>
</dependency>
<dependency>
+ <groupId>org.apache.commons</groupId>
+ <artifactId>commons-lang3</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
Modified:
commons/proper/weaver/trunk/example/src/test/java/org/apache/commons/weaver/privilizer/example/UsingBlueprintsTest.java
URL:
http://svn.apache.org/viewvc/commons/proper/weaver/trunk/example/src/test/java/org/apache/commons/weaver/privilizer/example/UsingBlueprintsTest.java?rev=1626499&r1=1626498&r2=1626499&view=diff
==============================================================================
---
commons/proper/weaver/trunk/example/src/test/java/org/apache/commons/weaver/privilizer/example/UsingBlueprintsTest.java
(original)
+++
commons/proper/weaver/trunk/example/src/test/java/org/apache/commons/weaver/privilizer/example/UsingBlueprintsTest.java
Sat Sep 20 21:34:33 2014
@@ -18,8 +18,12 @@
*/
package org.apache.commons.weaver.privilizer.example;
+import static org.junit.Assume.assumeFalse;
import static org.junit.Assert.assertEquals;
+import org.apache.commons.lang3.StringUtils;
+import org.apache.commons.lang3.SystemUtils;
+
import org.junit.Before;
import org.junit.Test;
@@ -71,6 +75,7 @@ public class UsingBlueprintsTest {
@Test
public void testMoreGetTopStackElementClassName() {
+ assumeFalse(StringUtils.containsIgnoreCase(SystemUtils.JAVA_VENDOR,
"ibm"));
assertEquals(Utils.More.class.getName(),
usingBlueprints.moreGetTopStackElementClassName());
}