Skip to content

Commit

Permalink
devonfw#1024: added comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-vcapgemini committed Feb 20, 2025
1 parent 3741c02 commit 502ab58
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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")))));

Expand All @@ -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();

}
Expand Down

0 comments on commit 502ab58

Please sign in to comment.