diff --git a/application-test/app-test/pom.xml b/application-test/app-test/pom.xml index f03b8405..2707b0b5 100644 --- a/application-test/app-test/pom.xml +++ b/application-test/app-test/pom.xml @@ -27,6 +27,18 @@ spring-boot-starter-test test + + + org.junit.vintage + junit-vintage-engine + test + + + org.hamcrest + hamcrest-core + + + diff --git a/application-test/app-test/src/test/java/com/example/apptest/StudyJUnit4Test.java b/application-test/app-test/src/test/java/com/example/apptest/StudyJUnit4Test.java new file mode 100644 index 00000000..a94414a0 --- /dev/null +++ b/application-test/app-test/src/test/java/com/example/apptest/StudyJUnit4Test.java @@ -0,0 +1,17 @@ +package com.example.apptest; + +import org.junit.Before; +import org.junit.Test; + +public class StudyJUnit4Test { + + @Before + public void before() { + System.out.println("before"); + } + + @Test + public void junit4_test() { + System.out.println("JUnit4_test"); + } +}