Files
gentoo/dev-java/ant-ivy/files/ant-ivy-2.5.3-MirroredURLResolverTest.patch
Volkmar W. Pogatzki 2ac61de87e dev-java/ant-ivy: add 2.5.3
- Enables tests.
- Builds with eant because of very complex test management.
- Skips some tests which would otherwise neeed network access.
- Disables jacoco coverage which would otherwise need network access.

Bug: https://bugs.gentoo.org/916262
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Part-of: https://codeberg.org/gentoo/gentoo/pulls/353
Merges: https://codeberg.org/gentoo/gentoo/pulls/353
Signed-off-by: Sam James <sam@gentoo.org>
2026-06-23 02:39:23 +01:00

46 lines
2.2 KiB
Diff

<testcase classname="org.apache.ivy.plugins.resolver.MirroredURLResolverTest" name="testSolo" time="0.018">
<failure type="junit.framework.AssertionFailedError">junit.framework.AssertionFailedError
at org.apache.ivy.plugins.resolver.MirroredURLResolverTest.testSolo(MirroredURLResolverTest.java:79)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
</failure>
</testcase>
<testcase classname="org.apache.ivy.plugins.resolver.MirroredURLResolverTest" name="testFailover" time="0.014">
<failure type="junit.framework.AssertionFailedError">junit.framework.AssertionFailedError
at org.apache.ivy.plugins.resolver.MirroredURLResolverTest.testFailover(MirroredURLResolverTest.java:92)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
</failure>
</testcase>
--- a/test/java/org/apache/ivy/plugins/resolver/MirroredURLResolverTest.java
+++ b/test/java/org/apache/ivy/plugins/resolver/MirroredURLResolverTest.java
@@ -31,6 +31,7 @@ import org.apache.ivy.core.sort.SortEngine;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
+import org.junit.Ignore;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
@@ -66,7 +67,7 @@ public class MirroredURLResolverTest {
TestHelper.cleanCache();
}
- @Test
+ @Test @Ignore
public void testSolo() throws Exception {
DependencyResolver resolver = settings.getResolver("solo");
assertNotNull(resolver);
@@ -79,7 +80,7 @@ public class MirroredURLResolverTest {
assertNotNull(rmr);
}
- @Test
+ @Test @Ignore
public void testFailover() throws Exception {
DependencyResolver resolver = settings.getResolver("failover");
assertNotNull(resolver);