|
18 | 18 |
|
19 | 19 | import static org.assertj.core.api.Assertions.assertThat;
|
20 | 20 | import static org.assertj.core.api.Assertions.assertThatIllegalStateException;
|
21 |
| -import static org.mockito.ArgumentMatchers.any; |
22 |
| -import static org.mockito.BDDMockito.willReturn; |
23 |
| -import static org.mockito.Mockito.mock; |
24 | 21 |
|
25 | 22 | import java.util.Collection;
|
26 | 23 | import java.util.List;
|
27 | 24 | import java.util.Map;
|
28 |
| -import java.util.Properties; |
29 | 25 | import java.util.Queue;
|
30 | 26 | import java.util.UUID;
|
31 | 27 | import java.util.concurrent.Callable;
|
|
53 | 49 | import org.junit.runners.Parameterized.Parameters;
|
54 | 50 |
|
55 | 51 | import org.springframework.data.redis.connection.RedisConnectionFactory;
|
56 |
| -import org.springframework.data.redis.core.RedisCallback; |
57 |
| -import org.springframework.data.redis.core.RedisOperations; |
58 | 52 | import org.springframework.data.redis.core.StringRedisTemplate;
|
59 | 53 | import org.springframework.integration.redis.rules.RedisAvailable;
|
60 | 54 | import org.springframework.integration.redis.rules.RedisAvailableTests;
|
@@ -797,23 +791,6 @@ public void earlyWakeUpTest() throws InterruptedException {
|
797 | 791 | executorService.shutdown();
|
798 | 792 | }
|
799 | 793 |
|
800 |
| - |
801 |
| - @SuppressWarnings({ "unchecked", "rawtypes" }) |
802 |
| - @Test |
803 |
| - public void testUlink() { |
804 |
| - RedisOperations ops = mock(RedisOperations.class); |
805 |
| - Properties props = new Properties(); |
806 |
| - willReturn(props).given(ops).execute(any(RedisCallback.class)); |
807 |
| - props.setProperty("redis_version", "3.0.0"); |
808 |
| - RedisLockRegistry registry = new RedisLockRegistry(mock(RedisConnectionFactory.class), "foo"); |
809 |
| - registry.setRedisLockType(testRedisLockType); |
810 |
| - assertThat(TestUtils.getPropertyValue(registry, "ulinkAvailable", Boolean.class)).isFalse(); |
811 |
| - props.setProperty("redis_version", "4.0.0"); |
812 |
| - registry = new RedisLockRegistry(mock(RedisConnectionFactory.class), "foo"); |
813 |
| - registry.setRedisLockType(testRedisLockType); |
814 |
| - assertThat(TestUtils.getPropertyValue(registry, "ulinkAvailable", Boolean.class)).isTrue(); |
815 |
| - } |
816 |
| - |
817 | 794 | private Long getExpire(RedisLockRegistry registry, String lockKey) {
|
818 | 795 | StringRedisTemplate template = createTemplate();
|
819 | 796 | String registryKey = TestUtils.getPropertyValue(registry, "registryKey", String.class);
|
|
0 commit comments