docs: update delegation

This commit is contained in:
Ilkka Seppälä
2024-04-07 18:06:46 +03:00
parent 39acd1d0fb
commit b8f5d46ba7
7 changed files with 95 additions and 66 deletions
@@ -35,7 +35,6 @@ class AppTest {
/**
* Issue: Add at least one assertion to this test case.
*
* Solution: Inserted assertion to check whether the execution of the main method in {@link App#main(String[])}
* throws an exception.
*/
@@ -59,7 +59,7 @@ class DelegateTest {
private static final String MESSAGE = "Test Message Printed";
@Test
void testCanonPrinter() throws Exception {
void testCanonPrinter() {
var printerController = new PrinterController(new CanonPrinter());
printerController.print(MESSAGE);
@@ -67,7 +67,7 @@ class DelegateTest {
}
@Test
void testHpPrinter() throws Exception {
void testHpPrinter() {
var printerController = new PrinterController(new HpPrinter());
printerController.print(MESSAGE);
@@ -75,7 +75,7 @@ class DelegateTest {
}
@Test
void testEpsonPrinter() throws Exception {
void testEpsonPrinter() {
var printerController = new PrinterController(new EpsonPrinter());
printerController.print(MESSAGE);