You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by rz...@apache.org on 2024/02/02 19:50:49 UTC
(tomee) branch main updated: Fix toggling tests due to dependency changes a few months ago. Resolver repo isn't accessible anymore, so lib cannot be found:
This is an automated email from the ASF dual-hosted git repository.
rzo1 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomee.git
The following commit(s) were added to refs/heads/main by this push:
new 1ea09796e5 Fix toggling tests due to dependency changes a few months ago. Resolver repo isn't accessible anymore, so lib cannot be found:
1ea09796e5 is described below
commit 1ea09796e53e85fbda041ab042faa7542c838953
Author: Richard Zowalla <13...@users.noreply.github.com>
AuthorDate: Fri Feb 2 20:50:42 2024 +0100
Fix toggling tests due to dependency changes a few months ago. Resolver repo isn't accessible anymore, so lib cannot be found:
Could not find artifact joda-time:joda-time:jar:2.5, try downloading from http://oss.sonatype.org/content/repositories/joda-releases
---
.../apache/openejb/arquillian/tests/jaxws/EarClassLoaderTest.java | 4 ++--
.../arquillian/tests/jaxws/EarWebAppFirstClassLoaderTest.java | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/arquillian/arquillian-tomee-tests/arquillian-tomee-jaxws-tests/src/test/java/org/apache/openejb/arquillian/tests/jaxws/EarClassLoaderTest.java b/arquillian/arquillian-tomee-tests/arquillian-tomee-jaxws-tests/src/test/java/org/apache/openejb/arquillian/tests/jaxws/EarClassLoaderTest.java
index 62661137d4..30f5ac1b66 100644
--- a/arquillian/arquillian-tomee-tests/arquillian-tomee-jaxws-tests/src/test/java/org/apache/openejb/arquillian/tests/jaxws/EarClassLoaderTest.java
+++ b/arquillian/arquillian-tomee-tests/arquillian-tomee-jaxws-tests/src/test/java/org/apache/openejb/arquillian/tests/jaxws/EarClassLoaderTest.java
@@ -48,7 +48,7 @@ public class EarClassLoaderTest {
Maven.configureResolver()
.workOffline()
.withClassPathResolution(true)
- .resolve("joda-time:joda-time:2.5")
+ .resolve("joda-time:joda-time:2.10.10")
.using(new AcceptScopesStrategy(ScopeType.COMPILE, ScopeType.RUNTIME))
.asFile()
)
@@ -63,6 +63,6 @@ public class EarClassLoaderTest {
// embedded case uses the classpath for a lot of reasons
assumeFalse(System.getProperty("openejb.arquillian.adapter", "embedded").contains("embedded"));
final String slurp = IO.slurp(new URL(url.toExternalForm() + (url.getPath().isEmpty() ? "/broken-web/" : "") + "joda"));
- assertTrue(slurp.endsWith("broken-web/WEB-INF/lib/joda-time-2.5.jar"));
+ assertTrue(slurp.endsWith("broken-web/WEB-INF/lib/joda-time-2.10.10.jar"));
}
}
diff --git a/arquillian/arquillian-tomee-tests/arquillian-tomee-jaxws-tests/src/test/java/org/apache/openejb/arquillian/tests/jaxws/EarWebAppFirstClassLoaderTest.java b/arquillian/arquillian-tomee-tests/arquillian-tomee-jaxws-tests/src/test/java/org/apache/openejb/arquillian/tests/jaxws/EarWebAppFirstClassLoaderTest.java
index 12fd1a4c37..c7fcb6ed70 100644
--- a/arquillian/arquillian-tomee-tests/arquillian-tomee-jaxws-tests/src/test/java/org/apache/openejb/arquillian/tests/jaxws/EarWebAppFirstClassLoaderTest.java
+++ b/arquillian/arquillian-tomee-tests/arquillian-tomee-jaxws-tests/src/test/java/org/apache/openejb/arquillian/tests/jaxws/EarWebAppFirstClassLoaderTest.java
@@ -48,7 +48,7 @@ public class EarWebAppFirstClassLoaderTest {
final File[] joda = Maven.configureResolver()
.workOffline()
.withClassPathResolution(true)
- .resolve("joda-time:joda-time:2.5")
+ .resolve("joda-time:joda-time:2.10.10")
.using(new AcceptScopesStrategy(ScopeType.COMPILE, ScopeType.RUNTIME))
.asFile();
return ShrinkWrap.create(EnterpriseArchive.class, "broken.ear")
@@ -70,7 +70,7 @@ public class EarWebAppFirstClassLoaderTest {
public void checkIfWasCorretlyLoaded() throws IOException {
assumeFalse(System.getProperty("openejb.arquillian.adapter", "embedded").contains("embedded"));
final String slurp = IO.slurp(new URL(url.toExternalForm() + (url.getPath().isEmpty() ? "/broken-web/" : "") + "joda"));
- assertTrue(slurp.endsWith("broken-web/WEB-INF/lib/joda-time-2.5.jar"));
- assertFalse(slurp.endsWith("broken/lib/joda-time-2.5.jar")); // useless cause of the previous but to make it obvious
+ assertTrue(slurp.endsWith("broken-web/WEB-INF/lib/joda-time-2.10.10.jar"));
+ assertFalse(slurp.endsWith("broken/lib/joda-time-2.10.10.jar")); // useless cause of the previous but to make it obvious
}
}