Skip to content

Commit f0ff8ad

Browse files
committed
Created a unit test for build, added junit to pom for delegation maven module. iluwatar#324
1 parent c318425 commit f0ff8ad

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

delegation/pom.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,11 @@
3535

3636
<artifactId>delegation</artifactId>
3737

38-
38+
<dependencies>
39+
<dependency>
40+
<groupId>junit</groupId>
41+
<artifactId>junit</artifactId>
42+
<scope>test</scope>
43+
</dependency>
44+
</dependencies>
3945
</project>

delegation/src/test/java/com/iluwatar/delegation/simple/AppTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@
33
import com.iluwatar.delegation.simple.printers.CanonPrinter;
44
import com.iluwatar.delegation.simple.printers.EpsonPrinter;
55
import com.iluwatar.delegation.simple.printers.HPPrinter;
6+
import org.junit.Test;
67

78
public class AppTest {
89

910
public static final String MESSAGE_TO_PRINT = "hello world";
1011

11-
public static void main(String args[]) {
12+
@Test
13+
public static void main() {
1214
Printer hpPrinter = new HPPrinter();
1315
Printer canonPrinter = new CanonPrinter();
1416
Printer epsonPrinter = new EpsonPrinter();

0 commit comments

Comments
 (0)