commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1697784 - /commons/proper/bcel/trunk/src/test/java/org/apache/commons/bcel6/util/BCELifierTestCase.java
Date Tue, 25 Aug 2015 22:58:56 GMT
Author: sebb
Date: Tue Aug 25 22:58:56 2015
New Revision: 1697784

URL: http://svn.apache.org/r1697784
Log:
BCEL-221 Test case for BCELifier.
Only runs interactively by default because it currently fails

Added:
    commons/proper/bcel/trunk/src/test/java/org/apache/commons/bcel6/util/BCELifierTestCase.java
  (with props)

Added: commons/proper/bcel/trunk/src/test/java/org/apache/commons/bcel6/util/BCELifierTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/bcel/trunk/src/test/java/org/apache/commons/bcel6/util/BCELifierTestCase.java?rev=1697784&view=auto
==============================================================================
--- commons/proper/bcel/trunk/src/test/java/org/apache/commons/bcel6/util/BCELifierTestCase.java
(added)
+++ commons/proper/bcel/trunk/src/test/java/org/apache/commons/bcel6/util/BCELifierTestCase.java
Tue Aug 25 22:58:56 2015
@@ -0,0 +1,23 @@
+package org.apache.commons.bcel6.util;
+
+import static org.junit.Assert.*;
+
+import org.apache.commons.bcel6.classfile.JavaClass;
+import org.junit.Test;
+import static org.junit.Assume.assumeTrue;
+
+public class BCELifierTestCase {
+
+    // A bit of a hack - we use the same property as for the perf test for now
+    private static final boolean REPORT = Boolean.parseBoolean(System.getProperty("PerformanceTest.report",
"true"));;
+
+    @Test
+    public void test() throws Exception {
+        assumeTrue(REPORT); // set to false by pom so this will only run on demand
+        JavaClass java_class = BCELifier.getJavaClass("Java8Example");
+        assertNotNull(java_class);
+        BCELifier bcelifier = new BCELifier(java_class, System.out);
+        bcelifier.start();
+    }
+
+}

Propchange: commons/proper/bcel/trunk/src/test/java/org/apache/commons/bcel6/util/BCELifierTestCase.java
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message