Created a unit test for build, added junit to pom for delegation maven module. #324

This commit is contained in:
Joseph McCarthy 2015-12-26 22:55:12 +00:00
parent c3184255bf
commit f0ff8ad4b3
2 changed files with 10 additions and 2 deletions

View File

@ -35,5 +35,11 @@
<artifactId>delegation</artifactId>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
</project>

View File

@ -3,12 +3,14 @@ package com.iluwatar.delegation.simple;
import com.iluwatar.delegation.simple.printers.CanonPrinter;
import com.iluwatar.delegation.simple.printers.EpsonPrinter;
import com.iluwatar.delegation.simple.printers.HPPrinter;
import org.junit.Test;
public class AppTest {
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 canonPrinter = new CanonPrinter();
Printer epsonPrinter = new EpsonPrinter();