Created a unit test for build, added junit to pom for delegation maven module. #324
This commit is contained in:
parent
c3184255bf
commit
f0ff8ad4b3
@ -35,5 +35,11 @@
|
|||||||
|
|
||||||
<artifactId>delegation</artifactId>
|
<artifactId>delegation</artifactId>
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>junit</groupId>
|
||||||
|
<artifactId>junit</artifactId>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
</project>
|
</project>
|
@ -3,12 +3,14 @@ package com.iluwatar.delegation.simple;
|
|||||||
import com.iluwatar.delegation.simple.printers.CanonPrinter;
|
import com.iluwatar.delegation.simple.printers.CanonPrinter;
|
||||||
import com.iluwatar.delegation.simple.printers.EpsonPrinter;
|
import com.iluwatar.delegation.simple.printers.EpsonPrinter;
|
||||||
import com.iluwatar.delegation.simple.printers.HPPrinter;
|
import com.iluwatar.delegation.simple.printers.HPPrinter;
|
||||||
|
import org.junit.Test;
|
||||||
|
|
||||||
public class AppTest {
|
public class AppTest {
|
||||||
|
|
||||||
public static final String MESSAGE_TO_PRINT = "hello world";
|
public static final String MESSAGE_TO_PRINT = "hello world";
|
||||||
|
|
||||||
public static void main(String args[]) {
|
@Test
|
||||||
|
public static void main() {
|
||||||
Printer hpPrinter = new HPPrinter();
|
Printer hpPrinter = new HPPrinter();
|
||||||
Printer canonPrinter = new CanonPrinter();
|
Printer canonPrinter = new CanonPrinter();
|
||||||
Printer epsonPrinter = new EpsonPrinter();
|
Printer epsonPrinter = new EpsonPrinter();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user