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
3 files changed +4
-23
lines changed Original file line number Diff line number Diff line change 1
1
package com .recombee .api_client .spring .boot ._2 .autoconfiguration ;
2
2
3
- import static org .junit . Assert . assertNotNull ;
3
+ import static org .assertj . core . api . Assertions . assertThat ;
4
4
5
- import org .junit .Test ;
6
- import org .junit .runner .RunWith ;
5
+ import org .junit .jupiter .api .Test ;
7
6
import org .springframework .beans .factory .annotation .Autowired ;
8
7
import org .springframework .boot .autoconfigure .EnableAutoConfiguration ;
9
8
import org .springframework .boot .test .context .SpringBootTest ;
10
9
import org .springframework .context .annotation .Configuration ;
11
10
import org .springframework .test .context .ActiveProfiles ;
12
- import org .springframework .test .context .junit4 .SpringRunner ;
13
11
14
12
import com .recombee .api_client .RecombeeClient ;
15
13
import com .recombee .api_client .spring .boot ._2 .autoconfiguration .RecombeeClientAutoconfigurationTest .TestConfig ;
16
14
17
- @ RunWith (SpringRunner .class )
18
15
@ SpringBootTest (classes = TestConfig .class )
19
16
@ ActiveProfiles ("test" )
20
17
public class RecombeeClientAutoconfigurationTest {
21
18
22
19
@ Configuration
23
- // @SpringBootApplication
24
20
@ EnableAutoConfiguration
25
21
public static class TestConfig {
26
22
}
@@ -30,6 +26,6 @@ public static class TestConfig {
30
26
31
27
@ Test
32
28
public void testAutoConfigurationExecutes () {
33
- assertNotNull (client );
29
+ assertThat (client ). isNotNull ( );
34
30
}
35
31
}
Original file line number Diff line number Diff line change 11
11
<name >Recombee API Client Spring Boot 2 Starter</name >
12
12
<packaging >pom</packaging >
13
13
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
-
30
14
<dependencies >
31
15
<dependency >
32
16
<groupId >com.recombee</groupId >
Original file line number Diff line number Diff line change 34
34
<groupId >junit</groupId >
35
35
<artifactId >junit</artifactId >
36
36
<version >4.13.1</version >
37
+ <scope >test</scope >
37
38
</dependency >
38
39
<dependency >
39
40
<groupId >commons-lang</groupId >
You can’t perform that action at this time.
0 commit comments