File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
src/test/java/org/springframework/ldap/control Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,9 @@ dependencies {
99 provided " com.sun:ldapbp:1.0"
1010
1111 testImplementation platform(' org.junit:junit-bom' )
12- testImplementation " org.junit.vintage:junit-vintage-engine"
13- testImplementation " junit:junit"
12+ testImplementation " org.junit.jupiter:junit-jupiter-api"
13+ testImplementation " org.junit.jupiter:junit-jupiter-engine"
14+ testRuntimeOnly(" org.junit.platform:junit-platform-launcher" )
1415 testImplementation " org.mockito:mockito-core"
1516 testImplementation " gsbase:gsbase"
1617 testImplementation " org.assertj:assertj-core"
@@ -26,4 +27,5 @@ compileTestJava {
2627
2728test {
2829 jvmArgs ' --add-exports' , ' java.naming/com.sun.jndi.ldap=ALL-UNNAMED'
30+ useJUnitPlatform()
2931}
Original file line number Diff line number Diff line change 2727import com .sun .jndi .ldap .ctl .VirtualListViewControl ;
2828import com .sun .jndi .ldap .ctl .VirtualListViewResponseControl ;
2929import junit .framework .AssertionFailedError ;
30- import org .junit .Before ;
31- import org .junit .Test ;
30+ import org .junit .jupiter . api . BeforeEach ;
31+ import org .junit .jupiter . api . Test ;
3232
3333import org .springframework .ldap .OperationNotSupportedException ;
3434
@@ -50,7 +50,7 @@ public class VirtualListViewControlDirContextProcessorTests {
5050
5151 private LdapContext ldapContextMock ;
5252
53- @ Before
53+ @ BeforeEach
5454 public void setUp () throws Exception {
5555 // Create ldapContext mock
5656 this .ldapContextMock = mock (LdapContext .class );
You can’t perform that action at this time.
0 commit comments