Skip to content

Commit

Permalink
Fix formatting and unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
inanemed committed Apr 14, 2024
1 parent c5cba94 commit 9283dca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ public void customize(Build build) {
if (!qualifier.equals("RELEASE")) {
if (qualifier.contains("SNAPSHOT")) {
addSnapshotRepository(build);
}else{
}
else {
addMilestoneRepository(build);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,9 @@ void addMavenCentralAndNonReleaseWhenUsingSemVerSnapshot() {

private void assertNonReleaseRepositories(MavenBuild build) {
List<MavenRepository> repositories = build.repositories().items().collect(Collectors.toList());
assertThat(repositories).hasSize(3);
assertThat(repositories).hasSize(2);
assertThat(repositories.get(0)).isEqualTo(MavenRepository.MAVEN_CENTRAL);
assertThat(repositories.get(1)).hasFieldOrPropertyWithValue("id", "spring-milestones")
.hasFieldOrPropertyWithValue("name", "Spring Milestones")
.hasFieldOrPropertyWithValue("url", "https://repo.spring.io/milestone")
.hasFieldOrPropertyWithValue("snapshotsEnabled", false);
assertThat(repositories.get(2)).hasFieldOrPropertyWithValue("id", "spring-snapshots")
assertThat(repositories.get(1)).hasFieldOrPropertyWithValue("id", "spring-snapshots")
.hasFieldOrPropertyWithValue("name", "Spring Snapshots")
.hasFieldOrPropertyWithValue("url", "https://repo.spring.io/snapshot")
.hasFieldOrPropertyWithValue("snapshotsEnabled", true);
Expand Down

0 comments on commit 9283dca

Please sign in to comment.