Skip to content

Commit

Permalink
Update to match checkStyle rules added for test packages iluwatar#324
Browse files Browse the repository at this point in the history
  • Loading branch information
mikulucky committed Dec 29, 2015
1 parent 52192de commit 17b889c
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

public class AppTest {

@Test
public void test() {
String[] args = {};
App.main(args);
}
@Test
public void test() {
String[] args = {};
App.main(args);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -11,33 +11,33 @@

public class DelegateTest {

private static final String MESSAGE = "Test Message Printed";
private static final String MESSAGE = "Test Message Printed";

@Rule
public final SystemOutRule systemOutRule = new SystemOutRule().enableLog();
@Rule
public final SystemOutRule systemOutRule = new SystemOutRule().enableLog();

@Test
public void testCanonPrinter() throws Exception {
AbstractPrinterController abstractController = new PrinterController(new CanonPrinter());
abstractController.print(MESSAGE);
@Test
public void testCanonPrinter() throws Exception {
AbstractPrinterController abstractController = new PrinterController(new CanonPrinter());
abstractController.print(MESSAGE);

assertEquals("Canon Printer : Test Message Printed\n", systemOutRule.getLog());
}
assertEquals("Canon Printer : Test Message Printed\n", systemOutRule.getLog());
}

@Test
public void testHPPrinter() throws Exception {
AbstractPrinterController abstractController = new PrinterController(new HpPrinter());
abstractController.print(MESSAGE);
@Test
public void testHpPrinter() throws Exception {
AbstractPrinterController abstractController = new PrinterController(new HpPrinter());
abstractController.print(MESSAGE);

assertEquals("HP Printer : Test Message Printed\n", systemOutRule.getLog());
}
assertEquals("HP Printer : Test Message Printed\n", systemOutRule.getLog());
}

@Test
public void testEpsonPrinter() throws Exception {
AbstractPrinterController abstractController = new PrinterController(new EpsonPrinter());
abstractController.print(MESSAGE);
@Test
public void testEpsonPrinter() throws Exception {
AbstractPrinterController abstractController = new PrinterController(new EpsonPrinter());
abstractController.print(MESSAGE);

assertEquals("Epson Printer : Test Message Printed\n", systemOutRule.getLog());
}
assertEquals("Epson Printer : Test Message Printed\n", systemOutRule.getLog());
}

}

0 comments on commit 17b889c

Please sign in to comment.