Skip to content

Commit

Permalink
change to repo.maven.apache.org url
Browse files Browse the repository at this point in the history
  • Loading branch information
binh-ampere committed Apr 15, 2024
1 parent f85a0b6 commit ab22b59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions unittest/test_java_tool_invoker.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def test_can_run_checks_java_is_installed(self):
self.assertTrue(self.tool_invoker.can_run())

def test_ampere_ready_assessor_for_jars_with_native_methods(self):
download_url = 'https://repo1.maven.org/maven2/io/netty/netty-transport-native-unix-common/4.1.73.Final/netty-transport-native-unix-common-4.1.73.Final.jar'
download_url = 'https://repo.maven.apache.org/maven2/io/netty/netty-transport-native-unix-common/4.1.73.Final/netty-transport-native-unix-common-4.1.73.Final.jar'
path = os.path.join('sample-projects', 'java-samples', 'netty-transport-native-unix-common-4.1.73.Final.jar')
urllib.request.urlretrieve(download_url, path)
result, message = self.tool_invoker.ampere_ready_assessor(path)
Expand All @@ -21,7 +21,7 @@ def test_ampere_ready_assessor_for_jars_with_native_methods(self):
self.assertTrue(message.startswith('Native methods:'))

def test_ampere_ready_assessor_for_jars_with_non_native_methods(self):
download_url = 'https://search.maven.org/remotecontent?filepath=javax/activation/activation/1.1.1/activation-1.1.1.jar'
download_url = 'https://repo.maven.apache.org/maven2/javax/activation/activation/1.1.1/activation-1.1.1.jar'
path = os.path.join('sample-projects', 'java-samples', 'activation-1.1.1.jar')
urllib.request.urlretrieve(download_url, path)
result, message = self.tool_invoker.ampere_ready_assessor(path)
Expand Down

0 comments on commit ab22b59

Please sign in to comment.