Skip to content

Commit

Permalink
fix: added missing before and after methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Rui Gu committed Apr 1, 2016
1 parent 724375b commit d8189a1
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 0 deletions.
@@ -1,15 +1,28 @@
package org.redisson;

import java.io.IOException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicInteger;
import org.junit.After;

import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.redisson.core.RCountDownLatch;

public class RedissonCountDownLatchConcurrentTest {

@Before
public void before() throws IOException, InterruptedException {
RedisRunner.startDefaultRedisTestInstance();
}

@After
public void after() throws InterruptedException {
RedisRunner.shutDownDefaultRedisTestInstance();
}

@Test
public void testSingleCountDownAwait_SingleInstance() throws InterruptedException {
Expand Down
12 changes: 12 additions & 0 deletions src/test/java/org/redisson/RedissonTest.java
Expand Up @@ -10,9 +10,11 @@
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
import java.util.concurrent.atomic.AtomicInteger;
import org.junit.After;

import org.junit.Assert;
import org.junit.Assume;
import org.junit.Before;
import org.junit.Test;
import org.redisson.RedisRunner.RedisProcess;
import org.redisson.client.RedisConnectionException;
Expand All @@ -28,6 +30,16 @@ public class RedissonTest {

RedissonClient redisson;

@Before
public void before() throws IOException, InterruptedException {
RedisRunner.startDefaultRedisTestInstance();
}

@After
public void after() throws InterruptedException {
RedisRunner.shutDownDefaultRedisTestInstance();
}

public static class Dummy {
private String field;
}
Expand Down
13 changes: 13 additions & 0 deletions src/test/java/org/redisson/RedissonTopicPatternTest.java
@@ -1,9 +1,12 @@
package org.redisson;

import java.io.IOException;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
import org.junit.After;

import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.redisson.core.BasePatternStatusListener;
import org.redisson.core.MessageListener;
Expand All @@ -12,6 +15,16 @@
import org.redisson.core.RTopic;

public class RedissonTopicPatternTest {

@Before
public void before() throws IOException, InterruptedException {
RedisRunner.startDefaultRedisTestInstance();
}

@After
public void after() throws InterruptedException {
RedisRunner.shutDownDefaultRedisTestInstance();
}

public static class Message {

Expand Down
13 changes: 13 additions & 0 deletions src/test/java/org/redisson/RedissonTopicTest.java
@@ -1,17 +1,30 @@
package org.redisson;

import java.io.IOException;
import java.io.Serializable;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
import org.junit.After;

import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.redisson.core.BaseStatusListener;
import org.redisson.core.MessageListener;
import org.redisson.core.RSet;
import org.redisson.core.RTopic;

public class RedissonTopicTest {

@Before
public void before() throws IOException, InterruptedException {
RedisRunner.startDefaultRedisTestInstance();
}

@After
public void after() throws InterruptedException {
RedisRunner.shutDownDefaultRedisTestInstance();
}

public static class Message implements Serializable {

Expand Down

0 comments on commit d8189a1

Please sign in to comment.