From f0ff8ad4b321af3977f25bf1617764459ade5ea9 Mon Sep 17 00:00:00 2001 From: Joseph McCarthy Date: Sat, 26 Dec 2015 22:55:12 +0000 Subject: [PATCH] Created a unit test for build, added junit to pom for delegation maven module. #324 --- delegation/pom.xml | 8 +++++++- .../test/java/com/iluwatar/delegation/simple/AppTest.java | 4 +++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/delegation/pom.xml b/delegation/pom.xml index 96c1fc952..47dbc3844 100644 --- a/delegation/pom.xml +++ b/delegation/pom.xml @@ -35,5 +35,11 @@ delegation - + + + junit + junit + test + + \ No newline at end of file diff --git a/delegation/src/test/java/com/iluwatar/delegation/simple/AppTest.java b/delegation/src/test/java/com/iluwatar/delegation/simple/AppTest.java index fc8d277a7..642fc218e 100644 --- a/delegation/src/test/java/com/iluwatar/delegation/simple/AppTest.java +++ b/delegation/src/test/java/com/iluwatar/delegation/simple/AppTest.java @@ -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();