This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-bcel.git
The following commit(s) were added to refs/heads/master by this push:
new 757ef201 Enable VerifyJavaMathTestCase.testBigDecimal() only on Java 8
757ef201 is described below
commit 757ef201d1738677d2718c2269993972c211bb09
Author: Gary Gregory <[email protected]>
AuthorDate: Sat Nov 19 10:27:50 2022 -0500
Enable VerifyJavaMathTestCase.testBigDecimal() only on Java 8
---
.../java/org/apache/bcel/verifier/VerifyJavaMathTestCase.java | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/test/java/org/apache/bcel/verifier/VerifyJavaMathTestCase.java
b/src/test/java/org/apache/bcel/verifier/VerifyJavaMathTestCase.java
index b07a7725..c5986511 100644
--- a/src/test/java/org/apache/bcel/verifier/VerifyJavaMathTestCase.java
+++ b/src/test/java/org/apache/bcel/verifier/VerifyJavaMathTestCase.java
@@ -21,15 +21,21 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.condition.EnabledOnJre;
+import org.junit.jupiter.api.condition.JRE;
-@Disabled
public class VerifyJavaMathTestCase extends AbstractVerifierTestCase {
+ /**
+ * Failas on Java > 8.
+ */
@Test
+ @EnabledOnJre(JRE.JAVA_8)
public void testBigDecimal() throws ClassNotFoundException {
assertTrue(doAllPasses("java.math.BigDecimal"));
}
+ @Disabled
@Test
public void testBigInteger() throws ClassNotFoundException {
assertTrue(doAllPasses("java.math.BigInteger"));