From 89ddf2c50b9b0b9ee2b0c6dadaf413289ae1f5e4 Mon Sep 17 00:00:00 2001 From: divya_jnu08 Date: Tue, 27 Apr 2021 19:36:10 +0530 Subject: [PATCH] Migrate LDAP examples to JUnit 5. Original pull request: #617. See #583. --- .../springdata/ldap/PersonRepositoryIntegrationTests.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/ldap/example/src/test/java/example/springdata/ldap/PersonRepositoryIntegrationTests.java b/ldap/example/src/test/java/example/springdata/ldap/PersonRepositoryIntegrationTests.java index 209ce574..a5f32635 100644 --- a/ldap/example/src/test/java/example/springdata/ldap/PersonRepositoryIntegrationTests.java +++ b/ldap/example/src/test/java/example/springdata/ldap/PersonRepositoryIntegrationTests.java @@ -15,7 +15,7 @@ */ package example.springdata.ldap; -import static org.assertj.core.api.Assertions.*; +import static org.assertj.core.api.Assertions.assertThat; import java.util.List; import java.util.Optional; @@ -23,18 +23,15 @@ import java.util.Optional; import javax.naming.InvalidNameException; import javax.naming.ldap.LdapName; -import org.junit.Test; -import org.junit.runner.RunWith; +import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; -import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; /** * Integration tests for {@link PersonRepository}. * * @author Mark Paluch */ -@RunWith(SpringJUnit4ClassRunner.class) @SpringBootTest public class PersonRepositoryIntegrationTests {