application test : junit5 - junit4 migration

This commit is contained in:
haerong22
2021-02-25 23:44:16 +09:00
parent 68f74b0025
commit 35b0b745af
2 changed files with 29 additions and 0 deletions

View File

@@ -27,6 +27,18 @@
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-core</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
<build>

View File

@@ -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");
}
}