From 35b0b745af55168e2efac644a9e52145acc31072 Mon Sep 17 00:00:00 2001 From: haerong22 Date: Thu, 25 Feb 2021 23:44:16 +0900 Subject: [PATCH] application test : junit5 - junit4 migration --- application-test/app-test/pom.xml | 12 ++++++++++++ .../com/example/apptest/StudyJUnit4Test.java | 17 +++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 application-test/app-test/src/test/java/com/example/apptest/StudyJUnit4Test.java 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"); + } +}