Skip to content

Commit 1aaa2c3

Browse files
committed
Fix code formatting issues in OfflineCauseTest
Remove extra blank lines and trailing spaces to satisfy Spotless checks.
1 parent 9f9f60b commit 1aaa2c3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

core/src/test/java/hudson/slaves/OfflineCauseTest.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,18 @@ void testChannelTermination_NoStacktrace() {
2222
@ExportedBean
2323
public static class ExportableException extends Exception {
2424
private final String testMessage;
25-
25+
2626
public ExportableException(String message) {
2727
super(message);
2828
this.testMessage = message;
2929
}
30-
30+
3131
@Exported
3232
public String getTestMessage() {
3333
return testMessage;
3434
}
3535
}
36-
36+
3737
public static class NonExportableException extends Exception {
3838
public NonExportableException(String message) {
3939
super(message);
@@ -44,7 +44,7 @@ public NonExportableException(String message) {
4444
void testChannelTermination_ExportsCauseWhenExportedBean() {
4545
ExportableException exportableException = new ExportableException("test message");
4646
OfflineCause.ChannelTermination termination = new OfflineCause.ChannelTermination(exportableException);
47-
47+
4848
// The getCause() method should return the exception when it's an ExportedBean
4949
assertThat(termination.getCause(), sameInstance(exportableException));
5050
}
@@ -53,16 +53,16 @@ void testChannelTermination_ExportsCauseWhenExportedBean() {
5353
void testChannelTermination_DoesNotExportNonExportableException() {
5454
NonExportableException nonExportableException = new NonExportableException("test message");
5555
OfflineCause.ChannelTermination termination = new OfflineCause.ChannelTermination(nonExportableException);
56-
56+
5757
// The getCause() method should return null when the exception is not an ExportedBean
5858
assertThat(termination.getCause(), nullValue());
5959
}
6060

6161
@Test
6262
void testChannelTermination_HandlesNullCause() {
6363
OfflineCause.ChannelTermination termination = new OfflineCause.ChannelTermination(null);
64-
65-
// The getCause() method should handle null cause
64+
65+
// The getCause() method should handle null cause
6666
assertThat(termination.getCause(), nullValue());
6767
}
6868

0 commit comments

Comments
 (0)