Upgrade test dependencies
This commit is contained in:
@@ -25,7 +25,7 @@ dependencyManagement {
|
|||||||
dependency 'javax.annotation:javax.annotation-api:1.3.2'
|
dependency 'javax.annotation:javax.annotation-api:1.3.2'
|
||||||
dependency 'javax.servlet:javax.servlet-api:4.0.1'
|
dependency 'javax.servlet:javax.servlet-api:4.0.1'
|
||||||
dependency 'junit:junit:4.13.2'
|
dependency 'junit:junit:4.13.2'
|
||||||
dependency 'mysql:mysql-connector-java:8.0.26'
|
dependency 'mysql:mysql-connector-java:8.0.27'
|
||||||
dependency 'org.apache.derby:derby:10.14.2.0'
|
dependency 'org.apache.derby:derby:10.14.2.0'
|
||||||
dependency 'org.assertj:assertj-core:3.19.0'
|
dependency 'org.assertj:assertj-core:3.19.0'
|
||||||
dependency 'org.hsqldb:hsqldb:2.5.2'
|
dependency 'org.hsqldb:hsqldb:2.5.2'
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ import org.springframework.data.redis.connection.lettuce.LettuceConnectionFactor
|
|||||||
*/
|
*/
|
||||||
public abstract class AbstractRedisITests {
|
public abstract class AbstractRedisITests {
|
||||||
|
|
||||||
private static final String DOCKER_IMAGE = "redis:5.0.10";
|
private static final String DOCKER_IMAGE = "redis:5.0.14";
|
||||||
|
|
||||||
protected static class BaseConfig {
|
protected static class BaseConfig {
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
dependencyManagement {
|
dependencyManagement {
|
||||||
imports {
|
imports {
|
||||||
mavenBom 'com.fasterxml.jackson:jackson-bom:2.12.5'
|
mavenBom 'com.fasterxml.jackson:jackson-bom:2.12.6'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
dependency 'ch.qos.logback:logback-classic:1.2.6'
|
dependency 'ch.qos.logback:logback-classic:1.2.9'
|
||||||
dependency 'com.maxmind.geoip2:geoip2:2.15.0'
|
dependency 'com.maxmind.geoip2:geoip2:2.15.0'
|
||||||
dependency 'javax.servlet.jsp.jstl:javax.servlet.jsp.jstl-api:1.2.2'
|
dependency 'javax.servlet.jsp.jstl:javax.servlet.jsp.jstl-api:1.2.2'
|
||||||
dependency 'javax.servlet.jsp:javax.servlet.jsp-api:2.3.3'
|
dependency 'javax.servlet.jsp:javax.servlet.jsp-api:2.3.3'
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ import org.springframework.test.web.servlet.htmlunit.webdriver.MockMvcHtmlUnitDr
|
|||||||
@SpringBootTest(webEnvironment = WebEnvironment.MOCK)
|
@SpringBootTest(webEnvironment = WebEnvironment.MOCK)
|
||||||
class FindByUsernameTests {
|
class FindByUsernameTests {
|
||||||
|
|
||||||
private static final String DOCKER_IMAGE = "redis:5.0.10";
|
private static final String DOCKER_IMAGE = "redis:5.0.14";
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private MockMvc mockMvc;
|
private MockMvc mockMvc;
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
|||||||
@AutoConfigureMockMvc
|
@AutoConfigureMockMvc
|
||||||
class HttpRedisJsonTest {
|
class HttpRedisJsonTest {
|
||||||
|
|
||||||
private static final String DOCKER_IMAGE = "redis:5.0.10";
|
private static final String DOCKER_IMAGE = "redis:5.0.14";
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private MockMvc mockMvc;
|
private MockMvc mockMvc;
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
|||||||
@SpringBootTest
|
@SpringBootTest
|
||||||
class RedisSerializerTest {
|
class RedisSerializerTest {
|
||||||
|
|
||||||
private static final String DOCKER_IMAGE = "redis:5.0.10";
|
private static final String DOCKER_IMAGE = "redis:5.0.14";
|
||||||
|
|
||||||
@SpringSessionRedisOperations
|
@SpringSessionRedisOperations
|
||||||
private RedisTemplate<Object, Object> sessionRedisTemplate;
|
private RedisTemplate<Object, Object> sessionRedisTemplate;
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ import org.springframework.test.web.servlet.htmlunit.webdriver.MockMvcHtmlUnitDr
|
|||||||
@SpringBootTest(webEnvironment = WebEnvironment.MOCK)
|
@SpringBootTest(webEnvironment = WebEnvironment.MOCK)
|
||||||
class BootTests {
|
class BootTests {
|
||||||
|
|
||||||
private static final String DOCKER_IMAGE = "redis:5.0.10";
|
private static final String DOCKER_IMAGE = "redis:5.0.14";
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private MockMvc mockMvc;
|
private MockMvc mockMvc;
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ import org.springframework.test.web.servlet.htmlunit.webdriver.MockMvcHtmlUnitDr
|
|||||||
@SpringBootTest(webEnvironment = WebEnvironment.MOCK)
|
@SpringBootTest(webEnvironment = WebEnvironment.MOCK)
|
||||||
class BootTests {
|
class BootTests {
|
||||||
|
|
||||||
private static final String DOCKER_IMAGE = "redis:5.0.10";
|
private static final String DOCKER_IMAGE = "redis:5.0.14";
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private MockMvc mockMvc;
|
private MockMvc mockMvc;
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
|||||||
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT)
|
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT)
|
||||||
class AttributeTests {
|
class AttributeTests {
|
||||||
|
|
||||||
private static final String DOCKER_IMAGE = "redis:5.0.9";
|
private static final String DOCKER_IMAGE = "redis:5.0.14";
|
||||||
|
|
||||||
@LocalServerPort
|
@LocalServerPort
|
||||||
private int port;
|
private int port;
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
|||||||
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT)
|
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT)
|
||||||
class AttributeTests {
|
class AttributeTests {
|
||||||
|
|
||||||
private static final String DOCKER_IMAGE = "redis:5.0.10";
|
private static final String DOCKER_IMAGE = "redis:5.0.14";
|
||||||
|
|
||||||
@LocalServerPort
|
@LocalServerPort
|
||||||
private int port;
|
private int port;
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
|
|||||||
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT)
|
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT)
|
||||||
class ApplicationTests {
|
class ApplicationTests {
|
||||||
|
|
||||||
private static final String DOCKER_IMAGE = "redis:5.0.10";
|
private static final String DOCKER_IMAGE = "redis:5.0.14";
|
||||||
|
|
||||||
@Value("${local.server.port}")
|
@Value("${local.server.port}")
|
||||||
private String port;
|
private String port;
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ import org.springframework.data.redis.connection.lettuce.LettuceConnectionFactor
|
|||||||
@Profile("embedded-redis")
|
@Profile("embedded-redis")
|
||||||
public class EmbeddedRedisConfig {
|
public class EmbeddedRedisConfig {
|
||||||
|
|
||||||
private static final String DOCKER_IMAGE = "redis:5.0.10";
|
private static final String DOCKER_IMAGE = "redis:5.0.14";
|
||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
public GenericContainer redisContainer() {
|
public GenericContainer redisContainer() {
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ import org.springframework.data.redis.connection.lettuce.LettuceConnectionFactor
|
|||||||
@Profile("embedded-redis")
|
@Profile("embedded-redis")
|
||||||
public class EmbeddedRedisConfig {
|
public class EmbeddedRedisConfig {
|
||||||
|
|
||||||
private static final String DOCKER_IMAGE = "redis:5.0.10";
|
private static final String DOCKER_IMAGE = "redis:5.0.14";
|
||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
public GenericContainer redisContainer() {
|
public GenericContainer redisContainer() {
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.
|
|||||||
@WebAppConfiguration
|
@WebAppConfiguration
|
||||||
class RestMockMvcTests {
|
class RestMockMvcTests {
|
||||||
|
|
||||||
private static final String DOCKER_IMAGE = "redis:5.0.10";
|
private static final String DOCKER_IMAGE = "redis:5.0.14";
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private SessionRepositoryFilter<? extends Session> sessionRepositoryFilter;
|
private SessionRepositoryFilter<? extends Session> sessionRepositoryFilter;
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ import org.springframework.data.redis.connection.lettuce.LettuceConnectionFactor
|
|||||||
@Profile("embedded-redis")
|
@Profile("embedded-redis")
|
||||||
public class EmbeddedRedisConfig {
|
public class EmbeddedRedisConfig {
|
||||||
|
|
||||||
private static final String DOCKER_IMAGE = "redis:5.0.10";
|
private static final String DOCKER_IMAGE = "redis:5.0.14";
|
||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
public GenericContainer redisContainer() {
|
public GenericContainer redisContainer() {
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ import org.springframework.data.redis.connection.lettuce.LettuceConnectionFactor
|
|||||||
@Profile("embedded-redis")
|
@Profile("embedded-redis")
|
||||||
public class EmbeddedRedisConfig {
|
public class EmbeddedRedisConfig {
|
||||||
|
|
||||||
private static final String DOCKER_IMAGE = "redis:5.0.10";
|
private static final String DOCKER_IMAGE = "redis:5.0.14";
|
||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
public GenericContainer redisContainer() {
|
public GenericContainer redisContainer() {
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ import org.springframework.data.redis.connection.lettuce.LettuceConnectionFactor
|
|||||||
@Profile("embedded-redis")
|
@Profile("embedded-redis")
|
||||||
public class EmbeddedRedisConfig {
|
public class EmbeddedRedisConfig {
|
||||||
|
|
||||||
private static final String DOCKER_IMAGE = "redis:5.0.10";
|
private static final String DOCKER_IMAGE = "redis:5.0.14";
|
||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
public GenericContainer redisContainer() {
|
public GenericContainer redisContainer() {
|
||||||
|
|||||||
Reference in New Issue
Block a user