application test : junit5 - junit4 migration
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user