Skip to content

Commit 0fb41b7

Browse files
committed
Fixed formatting based on Eclipse formatting.
1 parent 6b15ddf commit 0fb41b7

2 files changed

Lines changed: 20 additions & 21 deletions

File tree

jenkins-client/src/test/java/com/offbytwo/jenkins/JenkinsTestManualTestReport.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public void firstTest() throws Exception {
2525
System.out.println("totalCount: " + testReport.getTotalCount());
2626
System.out.println(" failCount: " + testReport.getFailCount());
2727
System.out.println(" skipCount: " + testReport.getSkipCount());
28-
28+
2929
TestResult testResult = lastCompletedBuild.getTestResult();
3030
System.out.println(" --- TestResult ---");
3131

@@ -35,7 +35,6 @@ public void firstTest() throws Exception {
3535
System.out.println(" duration: " + testResult.getDuration());
3636
System.out.println(" isEmpty: " + testResult.isEmpty());
3737
List<TestSuites> suites = testResult.getSuites();
38-
39-
38+
4039
}
4140
}

jenkins-client/src/test/java/com/offbytwo/jenkins/helper/RangeTest.java

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -29,54 +29,54 @@
2929
public class RangeTest {
3030

3131
private String getEscaped(String m) {
32-
return Range.CURLY_BRACKET_OPEN + m + Range.CURLY_BRACKET_CLOSE;
32+
return Range.CURLY_BRACKET_OPEN + m + Range.CURLY_BRACKET_CLOSE;
3333
}
3434

3535
@Test
3636
public void fromToGiven() {
37-
Range r = Range.build().from(1).to(5);
38-
assertThat(r.getRangeString()).isEqualTo(getEscaped("1,5"));
37+
Range r = Range.build().from(1).to(5);
38+
assertThat(r.getRangeString()).isEqualTo(getEscaped("1,5"));
3939
}
4040

4141
@Test
4242
public void onlyFromGiven() {
43-
Range r = Range.build().from(3).build();
44-
assertThat(r.getRangeString()).isEqualTo(getEscaped("3,"));
43+
Range r = Range.build().from(3).build();
44+
assertThat(r.getRangeString()).isEqualTo(getEscaped("3,"));
4545
}
4646

4747
@Test
4848
public void onlyToGiven() {
49-
Range r = Range.build().to(5).build();
50-
assertThat(r.getRangeString()).isEqualTo(getEscaped(",5"));
49+
Range r = Range.build().to(5).build();
50+
assertThat(r.getRangeString()).isEqualTo(getEscaped(",5"));
5151
}
5252

5353
@Test
5454
public void onlyGiven() {
55-
Range r = Range.build().only(3);
56-
assertThat(r.getRangeString()).isEqualTo(getEscaped("3,4"));
55+
Range r = Range.build().only(3);
56+
assertThat(r.getRangeString()).isEqualTo(getEscaped("3,4"));
5757
}
5858

5959
@Rule
6060
public ExpectedException exception = ExpectedException.none();
6161

6262
@Test
6363
public void toIsGivenLargerThanFromShouldResultInIllegalArgumentException() {
64-
exception.expect(IllegalArgumentException.class);
65-
exception.expectMessage("to must be greater than from");
66-
Range.build().from(5).to(1);
64+
exception.expect(IllegalArgumentException.class);
65+
exception.expectMessage("to must be greater than from");
66+
Range.build().from(5).to(1);
6767
}
6868

6969
@Test
7070
public void fromGivenNegativeValueShouldResultInIllegalArgumentException() {
71-
exception.expect(IllegalArgumentException.class);
72-
exception.expectMessage("from value must be greater or equal null.");
73-
Range.build().from(-1);
71+
exception.expect(IllegalArgumentException.class);
72+
exception.expectMessage("from value must be greater or equal null.");
73+
Range.build().from(-1);
7474
}
7575

7676
@Test
7777
public void fromGivenPositiveToNegativeValueShouldResultInIllegalArgumentException() {
78-
exception.expect(IllegalArgumentException.class);
79-
exception.expectMessage("to must be greater or equal null.");
80-
Range.build().from(5).to(-1);
78+
exception.expect(IllegalArgumentException.class);
79+
exception.expectMessage("to must be greater or equal null.");
80+
Range.build().from(5).to(-1);
8181
}
8282
}

0 commit comments

Comments
 (0)