From 502ab5828851f3485a5b6e84a69b6b919bd4d9a0 Mon Sep 17 00:00:00 2001 From: jan-vcapgemini Date: Thu, 20 Feb 2025 12:24:00 +0100 Subject: [PATCH] #1024: added comments --- .../tools/ide/url/tool/aws/AwsGithubUrlUpdaterTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/url-updater/src/test/java/com/devonfw/tools/ide/url/tool/aws/AwsGithubUrlUpdaterTest.java b/url-updater/src/test/java/com/devonfw/tools/ide/url/tool/aws/AwsGithubUrlUpdaterTest.java index 1627d4611..6c9cb9c14 100644 --- a/url-updater/src/test/java/com/devonfw/tools/ide/url/tool/aws/AwsGithubUrlUpdaterTest.java +++ b/url-updater/src/test/java/com/devonfw/tools/ide/url/tool/aws/AwsGithubUrlUpdaterTest.java @@ -40,6 +40,7 @@ public class AwsGithubUrlUpdaterTest extends AbstractUrlUpdaterTest { @Test public void testAwsGithubUrlUpdater(@TempDir Path tempDir, WireMockRuntimeInfo wmRuntimeInfo) throws IOException { + // arrange stubFor(get(urlMatching("/repos/.*")).willReturn(aResponse().withStatus(200) .withBody(Files.readAllBytes(Path.of(TEST_DATA_ROOT).resolve("github-tags.json"))))); @@ -48,9 +49,10 @@ public void testAwsGithubUrlUpdater(@TempDir Path tempDir, WireMockRuntimeInfo w UrlRepository urlRepository = UrlRepository.load(tempDir); AwsGithubUrlUpdaterMock updater = new AwsGithubUrlUpdaterMock(wmRuntimeInfo); - // when + // act updater.update(urlRepository); + // assert assertThat(tempDir.resolve("aws").resolve("aws").resolve("2.7.22").resolve("status.json")).exists(); }