Skip to content

Commit 8c0c3c7

Browse files
committed
Polishing.
Add author tags and update license years. See #2222
1 parent ebb8d41 commit 8c0c3c7

File tree

4 files changed

+15
-12
lines changed

4 files changed

+15
-12
lines changed

src/test/java/org/springframework/data/redis/TestCondition.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2013-2021 the original author or authors.
2+
* Copyright 2013-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -21,6 +21,7 @@
2121
* A condition to test periodically, used in conjunction with {@link Awaitility}
2222
*
2323
* @author Jennifer Hickey
24+
* @author Hendrik Duerkop
2425
*/
2526
public interface TestCondition {
2627

src/test/java/org/springframework/data/redis/connection/AbstractConnectionIntegrationTests.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2011-2021 the original author or authors.
2+
* Copyright 2011-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -17,7 +17,7 @@
1717

1818
import static org.assertj.core.api.Assertions.*;
1919
import static org.assertj.core.api.Assumptions.*;
20-
import static org.awaitility.Awaitility.await;
20+
import static org.awaitility.Awaitility.*;
2121
import static org.springframework.data.redis.connection.BitFieldSubCommands.*;
2222
import static org.springframework.data.redis.connection.BitFieldSubCommands.BitFieldIncrBy.Overflow.*;
2323
import static org.springframework.data.redis.connection.BitFieldSubCommands.BitFieldType.*;
@@ -36,12 +36,12 @@
3636
import java.util.concurrent.TimeUnit;
3737

3838
import org.assertj.core.data.Offset;
39-
import org.awaitility.Awaitility;
4039
import org.junit.AssumptionViolatedException;
4140
import org.junit.jupiter.api.AfterEach;
4241
import org.junit.jupiter.api.BeforeEach;
4342
import org.junit.jupiter.api.Disabled;
4443
import org.junit.jupiter.api.Test;
44+
4545
import org.springframework.beans.factory.annotation.Autowired;
4646
import org.springframework.dao.DataAccessException;
4747
import org.springframework.data.domain.Range.Bound;
@@ -104,6 +104,7 @@
104104
* @author Tugdual Grall
105105
* @author Dejan Jankov
106106
* @author Andrey Shlykov
107+
* @author Hendrik Duerkop
107108
*/
108109
public abstract class AbstractConnectionIntegrationTests {
109110

src/test/java/org/springframework/data/redis/core/DefaultValueOperationsIntegrationTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2013-2021 the original author or authors.
2+
* Copyright 2013-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -17,7 +17,7 @@
1717

1818
import static org.assertj.core.api.Assertions.*;
1919
import static org.assertj.core.api.Assumptions.*;
20-
import static org.awaitility.Awaitility.await;
20+
import static org.awaitility.Awaitility.*;
2121

2222
import java.text.DecimalFormat;
2323
import java.time.Duration;
@@ -31,7 +31,6 @@
3131
import org.junit.jupiter.api.BeforeEach;
3232

3333
import org.springframework.data.redis.ObjectFactory;
34-
import org.springframework.data.redis.connection.AbstractConnectionIntegrationTests;
3534
import org.springframework.data.redis.test.condition.EnabledIfLongRunningTest;
3635
import org.springframework.data.redis.test.condition.EnabledOnCommand;
3736
import org.springframework.data.redis.test.extension.parametrized.MethodSource;
@@ -46,6 +45,7 @@
4645
* @author Thomas Darimont
4746
* @author Jiahe Cai
4847
* @author Mark Paluch
48+
* @author Hendrik Duerkop
4949
*/
5050
@MethodSource("testParams")
5151
public class DefaultValueOperationsIntegrationTests<K, V> {

src/test/java/org/springframework/data/redis/core/RedisTemplateIntegrationTests.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2013-2021 the original author or authors.
2+
* Copyright 2013-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -17,7 +17,7 @@
1717

1818
import static org.assertj.core.api.Assertions.*;
1919
import static org.assertj.core.api.Assumptions.*;
20-
import static org.awaitility.Awaitility.await;
20+
import static org.awaitility.Awaitility.*;
2121

2222
import java.time.Duration;
2323
import java.time.Instant;
@@ -61,6 +61,7 @@
6161
* @author Duobiao Ou
6262
* @author Mark Paluch
6363
* @author ihaohong
64+
* @author Hendrik Duerkop
6465
*/
6566
@MethodSource("testParams")
6667
public class RedisTemplateIntegrationTests<K, V> {
@@ -617,7 +618,7 @@ void testExpireAt() {
617618
V value1 = valueFactory.instance();
618619
redisTemplate.boundValueOps(key1).set(value1);
619620
redisTemplate.expireAt(key1, new Date(System.currentTimeMillis() + 5L));
620-
await().atMost(Duration.ofMillis(5L)).until(() -> !redisTemplate.hasKey(key1));
621+
await().until(() -> !redisTemplate.hasKey(key1));
621622
}
622623

623624
@ParameterizedRedisTest // DATAREDIS-611
@@ -626,7 +627,7 @@ void testExpireAtInstant() {
626627
V value1 = valueFactory.instance();
627628
redisTemplate.boundValueOps(key1).set(value1);
628629
redisTemplate.expireAt(key1, Instant.now().plus(5, ChronoUnit.MILLIS));
629-
await().atMost(Duration.ofMillis(5L)).until(() -> !redisTemplate.hasKey(key1));
630+
await().until(() -> !redisTemplate.hasKey(key1));
630631
}
631632

632633
@ParameterizedRedisTest
@@ -644,7 +645,7 @@ void testExpireAtMillisNotSupported() {
644645
template2.boundValueOps((String) key1).set((String) value1);
645646
template2.expireAt((String) key1, new Date(System.currentTimeMillis() + 5L));
646647
// Just ensure this works as expected, pExpireAt just adds some precision over expireAt
647-
await().atMost(Duration.ofMillis(5L)).until(() -> !template2.hasKey((String) key1));
648+
await().until(() -> !template2.hasKey((String) key1));
648649
}
649650

650651
@ParameterizedRedisTest

0 commit comments

Comments
 (0)