Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#689: Added url and removed try-catch-block #698

Merged
merged 18 commits into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import java.util.Iterator;
import java.util.stream.Stream;

import com.devonfw.tools.ide.cli.CliException;
import com.devonfw.tools.ide.context.IdeContext;
import com.devonfw.tools.ide.version.GenericVersionRange;
import com.devonfw.tools.ide.version.VersionIdentifier;
Expand All @@ -33,12 +32,8 @@ public ToolRepositoryMock(IdeContext context, Path repositoryFolder) {
@Override
public VersionIdentifier resolveVersion(String tool, String edition, GenericVersionRange version) {

try {
return super.resolveVersion(tool, edition, version);
} catch (CliException e) {
this.context.error(e, "Invalid test project using version {} that cannot be resolved in urls folder", version);
return version.getMax();
}
return super.resolveVersion(tool, edition, version);

}

@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
https://adoptium.net/download/dummytest
${testbaseurl}/download/android-studio/android-studio/2024.1.1.1/android-studio-2024.1.1.1.tgz
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
${testbaseurl}/download/gradle/gradle/8.7/gradle-8.7.tgz
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
${testbaseurl}/download/java/java/17.0.10_7/java-17.0.10_7.jar
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
${testbaseurl}/download/mvn/mvn/3.9.6/mvn-3.9.6.tgz
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
${testbaseurl}/download/node/node/v18.19.1/node-v18.19.1.tgz
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
${testbaseurl}/download/npm/npm/9.9.2/npm-9.9.2.tgz
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
${testbaseurl}/download/dotnet/dotnet/6.0.419/dotnet-6.0.419.tgz
jan-vcapgemini marked this conversation as resolved.
Show resolved Hide resolved

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
https://downloads.eclipse.org/dummytest
${testbaseurl}/download/eclipse/eclipse/2024-09/eclipse-2024-09.tgz
Original file line number Diff line number Diff line change
@@ -1 +1 @@
https://adoptium.net/download/dummytest
${testbaseurl}/download/java/java/17.0.10_7/java-17.0.10_7.jar
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
${testbaseurl}/download/graalvm/graalvm/22.3.3/graalvm-22.3.3.tgz

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
https://download.jetbrains.com/idea/ideaC-2023.3.3.win.zip
${testbaseurl}/download/intellij/intellij/2023.3.3/intellij-2023.3.3.tgz

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
https://adoptium.net/download/dummytest
${testbaseurl}/download/java/java/17.0.10_7/java-17.0.10_7.jar

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
${testbaseurl}/download/jasypt/jasypt/1.9.3/jasypt-1.9.3.tgz

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
${testbaseurl}/download/java/java/17.0.10_7/java-17.0.10_7.jar

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
${testbaseurl}/download/java/java/17.0.10_7/java-17.0.10_7.jar

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
${testbaseurl}/download/jmc/jmc/8.3.0/jmc-8.3.0.tgz

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
${testbaseurl}/download/java/java/17.0.10_7/java-17.0.10_7.jar

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
${testbaseurl}/download/mvn/mvn/3.9.7/mvn-3.9.7.tgz

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
${testbaseurl}/download/node/node/v18.19.1/node-v18.19.1.tgz

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
${testbaseurl}/download/npm/npm/9.9.2/npm-9.9.2.tgz

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
https://adoptium.net/download/dummytest
${testbaseurl}/download/java/java/17.0.10_7/java-17.0.10_7.jar
Original file line number Diff line number Diff line change
@@ -1 +1 @@
https://adoptium.net/download/dummytest
${testbaseurl}/download/java/java/21_35/java-21_35.jar
Original file line number Diff line number Diff line change
@@ -1 +1 @@
https://adoptium.net/download/dummytest
${testbaseurl}/download/java/java/8u402b06/java-8u402b06.jar
Original file line number Diff line number Diff line change
@@ -1 +1 @@
https://dlcdn.apache.org/tomcat/tomcat-10/v10.1.14/bin/apache-tomcat-10.1.14.zip
${testbaseurl}/download/tomcat/tomcat/10.1.14/tomcat-10.1.14.tgz

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
${testbaseurl}/download/java/java/17.0.6/java-17.0.6.jar

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
${testbaseurl}/download/mvn/mvn/3.2.1/mvn-3.2.1.tgz
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
${testbaseurl}/download/vscode/vscode/1.92.1/vscode-1.92.1.tgz

This file was deleted.

Loading