Skip to content

Commit 17b889c

Browse files
committed
Update to match checkStyle rules added for test packages iluwatar#324
1 parent 52192de commit 17b889c

2 files changed

Lines changed: 26 additions & 26 deletions

File tree

delegation/src/test/java/com/iluwatar/delegation/simple/AppTest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55
public class AppTest {
66

7-
@Test
8-
public void test() {
9-
String[] args = {};
10-
App.main(args);
11-
}
7+
@Test
8+
public void test() {
9+
String[] args = {};
10+
App.main(args);
11+
}
1212

1313
}

delegation/src/test/java/com/iluwatar/delegation/simple/DelegateTest.java

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -11,33 +11,33 @@
1111

1212
public class DelegateTest {
1313

14-
private static final String MESSAGE = "Test Message Printed";
14+
private static final String MESSAGE = "Test Message Printed";
1515

16-
@Rule
17-
public final SystemOutRule systemOutRule = new SystemOutRule().enableLog();
16+
@Rule
17+
public final SystemOutRule systemOutRule = new SystemOutRule().enableLog();
1818

19-
@Test
20-
public void testCanonPrinter() throws Exception {
21-
AbstractPrinterController abstractController = new PrinterController(new CanonPrinter());
22-
abstractController.print(MESSAGE);
19+
@Test
20+
public void testCanonPrinter() throws Exception {
21+
AbstractPrinterController abstractController = new PrinterController(new CanonPrinter());
22+
abstractController.print(MESSAGE);
2323

24-
assertEquals("Canon Printer : Test Message Printed\n", systemOutRule.getLog());
25-
}
24+
assertEquals("Canon Printer : Test Message Printed\n", systemOutRule.getLog());
25+
}
2626

27-
@Test
28-
public void testHPPrinter() throws Exception {
29-
AbstractPrinterController abstractController = new PrinterController(new HpPrinter());
30-
abstractController.print(MESSAGE);
27+
@Test
28+
public void testHpPrinter() throws Exception {
29+
AbstractPrinterController abstractController = new PrinterController(new HpPrinter());
30+
abstractController.print(MESSAGE);
3131

32-
assertEquals("HP Printer : Test Message Printed\n", systemOutRule.getLog());
33-
}
32+
assertEquals("HP Printer : Test Message Printed\n", systemOutRule.getLog());
33+
}
3434

35-
@Test
36-
public void testEpsonPrinter() throws Exception {
37-
AbstractPrinterController abstractController = new PrinterController(new EpsonPrinter());
38-
abstractController.print(MESSAGE);
35+
@Test
36+
public void testEpsonPrinter() throws Exception {
37+
AbstractPrinterController abstractController = new PrinterController(new EpsonPrinter());
38+
abstractController.print(MESSAGE);
3939

40-
assertEquals("Epson Printer : Test Message Printed\n", systemOutRule.getLog());
41-
}
40+
assertEquals("Epson Printer : Test Message Printed\n", systemOutRule.getLog());
41+
}
4242

4343
}

0 commit comments

Comments
 (0)