File tree Expand file tree Collapse file tree 3 files changed +4
-23
lines changed
api-client-spring-boot-2-autoconfigure/src/test/java/com/recombee/api_client/spring/boot/_2/autoconfiguration
api-client-spring-boot-2-starter Expand file tree Collapse file tree 3 files changed +4
-23
lines changed Original file line number Diff line number Diff line change 11package com .recombee .api_client .spring .boot ._2 .autoconfiguration ;
22
3- import static org .junit . Assert . assertNotNull ;
3+ import static org .assertj . core . api . Assertions . assertThat ;
44
5- import org .junit .Test ;
6- import org .junit .runner .RunWith ;
5+ import org .junit .jupiter .api .Test ;
76import org .springframework .beans .factory .annotation .Autowired ;
87import org .springframework .boot .autoconfigure .EnableAutoConfiguration ;
98import org .springframework .boot .test .context .SpringBootTest ;
109import org .springframework .context .annotation .Configuration ;
1110import org .springframework .test .context .ActiveProfiles ;
12- import org .springframework .test .context .junit4 .SpringRunner ;
1311
1412import com .recombee .api_client .RecombeeClient ;
1513import com .recombee .api_client .spring .boot ._2 .autoconfiguration .RecombeeClientAutoconfigurationTest .TestConfig ;
1614
17- @ RunWith (SpringRunner .class )
1815@ SpringBootTest (classes = TestConfig .class )
1916@ ActiveProfiles ("test" )
2017public class RecombeeClientAutoconfigurationTest {
2118
2219 @ Configuration
23- // @SpringBootApplication
2420 @ EnableAutoConfiguration
2521 public static class TestConfig {
2622 }
@@ -30,6 +26,6 @@ public static class TestConfig {
3026
3127 @ Test
3228 public void testAutoConfigurationExecutes () {
33- assertNotNull (client );
29+ assertThat (client ). isNotNull ( );
3430 }
3531}
Original file line number Diff line number Diff line change 1111 <name >Recombee API Client Spring Boot 2 Starter</name >
1212 <packaging >pom</packaging >
1313
14- <properties >
15- <dependency .springboot.version>${spring.boot.2.version} </dependency .springboot.version>
16- </properties >
17-
18- <dependencyManagement >
19- <dependencies >
20- <dependency >
21- <groupId >org.springframework.boot</groupId >
22- <artifactId >spring-boot-dependencies</artifactId >
23- <version >${dependency.springboot.version} </version >
24- <type >pom</type >
25- <scope >import</scope >
26- </dependency >
27- </dependencies >
28- </dependencyManagement >
29-
3014 <dependencies >
3115 <dependency >
3216 <groupId >com.recombee</groupId >
Original file line number Diff line number Diff line change 3333 <groupId >junit</groupId >
3434 <artifactId >junit</artifactId >
3535 <version >4.13.1</version >
36+ <scope >test</scope >
3637 </dependency >
3738 <dependency >
3839 <groupId >commons-lang</groupId >
You can’t perform that action at this time.
0 commit comments