summaryrefslogtreecommitdiff
path: root/dev-java/jackson-databind/files/jackson-databind-2.20.0-NoClassDefFoundWorkaroundTest.patch
blob: 154bd5ddeb5b6da1f09c218877d28f8fe6a5de77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
testClassIsMissing()
     tags: []
 uniqueId: [engine:junit-jupiter]/[class:com.fasterxml.jackson.databind.introspect.NoClassDefFoundWorkaroundTest]/[method:testClassIsMissing()]
   parent: [engine:junit-jupiter]/[class:com.fasterxml.jackson.databind.introspect.NoClassDefFoundWorkaroundTest]
   source: MethodSource [className = 'com.fasterxml.jackson.databind.introspect.NoClassDefFoundWorkaroundTest', methodName = 'testClassIsMissing', methodParameterTypes = '']
   caught: org.opentest4j.AssertionFailedError: Should not have found javax.measure.Measure
             	at org.junit.jupiter.api.AssertionUtils.fail(AssertionUtils.java:38)
             	at org.junit.jupiter.api.Assertions.fail(Assertions.java:138)
             	at com.fasterxml.jackson.databind.introspect.NoClassDefFoundWorkaroundTest.testClassIsMissing(NoClassDefFoundWorkaroundTest.java:29)
             	at java.base/java.lang.reflect.Method.invoke(Method.java:565)
             	at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
             	at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
 duration: 19 ms
   status: ✘ FAILED
testUseMissingClass()
     tags: []
 uniqueId: [engine:junit-jupiter]/[class:com.fasterxml.jackson.databind.introspect.NoClassDefFoundWorkaroundTest]/[method:testUseMissingClass()]
   parent: [engine:junit-jupiter]/[class:com.fasterxml.jackson.databind.introspect.NoClassDefFoundWorkaroundTest]
   source: MethodSource [className = 'com.fasterxml.jackson.databind.introspect.NoClassDefFoundWorkaroundTest', methodName = 'testUseMissingClass', methodParameterTypes = '']
   caught: org.opentest4j.AssertionFailedError: cannot instantiate a missing class ==> expected: <true> but was: <false>
             	at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
             	at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
             	at org.junit.jupiter.api.AssertTrue.failNotTrue(AssertTrue.java:63)
             	at org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:36)
             	at org.junit.jupiter.api.Assertions.assertTrue(Assertions.java:214)
             	at com.fasterxml.jackson.databind.introspect.NoClassDefFoundWorkaroundTest.testUseMissingClass(NoClassDefFoundWorkaroundTest.java:53)
             	at java.base/java.lang.reflect.Method.invoke(Method.java:565)
             	at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
             	at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
 duration: 5 ms
   status: ✘ FAILED

--- a/src/test/java/com/fasterxml/jackson/databind/introspect/NoClassDefFoundWorkaroundTest.java
+++ b/src/test/java/com/fasterxml/jackson/databind/introspect/NoClassDefFoundWorkaroundTest.java
@@ -4,6 +4,7 @@ import java.util.List;
 
 import javax.measure.Measure;
 import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.Disabled;
 
 import com.fasterxml.jackson.databind.ObjectMapper;
 import com.fasterxml.jackson.databind.testutil.DatabindTestUtil;
@@ -21,7 +22,7 @@ public class NoClassDefFoundWorkaroundTest extends DatabindTestUtil
         public Measure<?> measure;
     }
 
-    @Test
+    @Test @Disabled
     public void testClassIsMissing()
     {
         try {
@@ -40,7 +41,7 @@ public class NoClassDefFoundWorkaroundTest extends DatabindTestUtil
         assertNotNull(result);
     }
 
-    @Test
+    @Test @Disabled
     public void testUseMissingClass() throws Exception
     {
         boolean missing = false;