Skip to content

Commit d19d88f

Browse files
Fixed formatting
1 parent 4425fed commit d19d88f

File tree

1 file changed

+10
-15
lines changed

1 file changed

+10
-15
lines changed

src/e2eTest/java/io/micrometer/release/single/SingleProjectGithubActionsE2eTests.java

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828

2929
class SingleProjectGithubActionsE2eTests implements GithubActions {
3030

31-
String[] closedIssueTitles = {"Closed issue in generic 0.1.x", "Closed bug in concrete 0.1.1",
32-
"Closed bug in generic 0.1.x", "Closed enhancement in generic 0.1.x"};
31+
String[] closedIssueTitles = { "Closed issue in generic 0.1.x", "Closed bug in concrete 0.1.1",
32+
"Closed bug in generic 0.1.x", "Closed enhancement in generic 0.1.x" };
3333

3434
@BeforeAll
3535
static void should_go_through_whole_flow() {
@@ -44,9 +44,9 @@ void should_verify_release_notes_content() throws JsonProcessingException {
4444
assertThat(release.body()).containsIgnoringWhitespaces(
4545
"Closed enhancement in generic 0.1.x [#8](https://github.com/marcingrzejszczak/gh-actions-test/issues/8)")
4646
.containsIgnoringWhitespaces(
47-
"Closed bug in concrete 0.1.1 [#12](https://github.com/marcingrzejszczak/gh-actions-test/issues/12)")
47+
"Closed bug in concrete 0.1.1 [#12](https://github.com/marcingrzejszczak/gh-actions-test/issues/12)")
4848
.containsIgnoringWhitespaces(
49-
"Closed bug in generic 0.1.x [#9](https://github.com/marcingrzejszczak/gh-actions-test/issues/9)");
49+
"Closed bug in generic 0.1.x [#9](https://github.com/marcingrzejszczak/gh-actions-test/issues/9)");
5050
}
5151

5252
@Test
@@ -68,11 +68,9 @@ void should_verify_next_milestone() throws JsonProcessingException {
6868
Milestone milestone = githubClient.getMilestoneByTitle("0.1.2");
6969

7070
assertThat(milestone.state()).isEqualTo("open");
71-
assertThat(milestone.dueOn()).isEqualTo(
72-
ReleaseDateCalculator.calculateDueDate(LocalDate.now()));
71+
assertThat(milestone.dueOn()).isEqualTo(ReleaseDateCalculator.calculateDueDate(LocalDate.now()));
7372
List<Issue> issues = githubClient.getIssuesForMilestone(milestone.number());
74-
assertThat(issues).filteredOn(
75-
s -> "Open issue in concrete 0.1.1".equalsIgnoreCase(s.title()))
73+
assertThat(issues).filteredOn(s -> "Open issue in concrete 0.1.1".equalsIgnoreCase(s.title()))
7674
.extracting(Issue::state)
7775
.containsOnly("open");
7876
assertThat(issues).extracting(Issue::title)
@@ -85,17 +83,14 @@ void should_verify_generic_milestone() throws JsonProcessingException {
8583
Milestone milestone = githubClient.getMilestoneByTitle("0.1.x");
8684

8785
List<Issue> closedIssues = githubClient.getClosedIssuesForMilestone(milestone.number());
88-
assertThat(closedIssues)
89-
.extracting(Issue::title)
90-
.matches(strings -> strings.stream()
91-
.noneMatch(s -> s.contains("in generic") || s.contains("in concrete")),
92-
"Must not contain any closed issues that we created");
86+
assertThat(closedIssues).extracting(Issue::title)
87+
.matches(strings -> strings.stream().noneMatch(s -> s.contains("in generic") || s.contains("in concrete")),
88+
"Must not contain any closed issues that we created");
9389
}
9490

9591
private static void runPostReleaseWorkflow() {
9692
log.info("Running post release action from tag");
97-
GithubActions.runWorkflow("post-release-workflow.yml", "v0.1.1",
98-
List.of("gh", "workflow", "run",
93+
GithubActions.runWorkflow("post-release-workflow.yml", "v0.1.1", List.of("gh", "workflow", "run",
9994
"post-release-workflow.yml", "--ref", "v0.1.1", "-f", "previous_ref_name=v0.1.0"));
10095
}
10196

0 commit comments

Comments
 (0)