mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-12-17 15:43:55 +00:00
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Part-of: https://github.com/gentoo/gentoo/pull/44063 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
60 lines
3.5 KiB
Diff
60 lines
3.5 KiB
Diff
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;
|