Skip to content

Commit 86a893d

Browse files
committed
Refactor SpringBootProfileIntegrationTest
1 parent 9d9d0cc commit 86a893d

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎spring-boot/src/test/java/org/baeldung/SpringBootProfileIntegrationTest.java‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
package org.baeldung;
22

3-
import static org.junit.Assert.assertEquals;
4-
import static org.junit.Assert.assertNotNull;
5-
63
import org.baeldung.config.H2TestProfileJPAConfig;
74
import org.baeldung.domain.GenericEntity;
85
import org.baeldung.repository.GenericEntityRepository;
@@ -11,9 +8,12 @@
118
import org.springframework.beans.factory.annotation.Autowired;
129
import org.springframework.boot.test.context.SpringBootTest;
1310
import org.springframework.test.context.ActiveProfiles;
14-
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
11+
import org.springframework.test.context.junit4.SpringRunner;
12+
13+
import static org.junit.Assert.assertEquals;
14+
import static org.junit.Assert.assertNotNull;
1515

16-
@RunWith(SpringJUnit4ClassRunner.class)
16+
@RunWith(SpringRunner.class)
1717
@SpringBootTest(classes = { Application.class, H2TestProfileJPAConfig.class })
1818
@ActiveProfiles("test")
1919
public class SpringBootProfileIntegrationTest {

0 commit comments

Comments
 (0)