|
|
@ -1,5 +1,6 @@
|
|
|
|
package org.redisson;
|
|
|
|
package org.redisson;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import java.io.IOException;
|
|
|
|
import org.junit.After;
|
|
|
|
import org.junit.After;
|
|
|
|
import org.junit.Assert;
|
|
|
|
import org.junit.Assert;
|
|
|
|
import org.junit.Before;
|
|
|
|
import org.junit.Before;
|
|
|
@ -29,15 +30,17 @@ public class RedissonTwoLockedThread {
|
|
|
|
private RedissonClient redisson;
|
|
|
|
private RedissonClient redisson;
|
|
|
|
|
|
|
|
|
|
|
|
@Before
|
|
|
|
@Before
|
|
|
|
public void before() {
|
|
|
|
public void before() throws IOException, InterruptedException {
|
|
|
|
|
|
|
|
RedisRunner.startDefaultRedisTestInstance();
|
|
|
|
Config config = BaseTest.createConfig();
|
|
|
|
Config config = BaseTest.createConfig();
|
|
|
|
config.setCodec(codec);
|
|
|
|
config.setCodec(codec);
|
|
|
|
redisson = Redisson.create(config);
|
|
|
|
redisson = Redisson.create(config);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@After
|
|
|
|
@After
|
|
|
|
public void after() {
|
|
|
|
public void after() throws InterruptedException {
|
|
|
|
redisson.shutdown();
|
|
|
|
redisson.shutdown();
|
|
|
|
|
|
|
|
RedisRunner.shutDownDefaultRedisTestInstance();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Test(timeout = 3000)
|
|
|
|
@Test(timeout = 3000)
|
|
|
|