Skip to content

Commit 0917e95

Browse files
committed
Added release notes, small changes to tests
1 parent b1678e0 commit 0917e95

4 files changed

Lines changed: 14 additions & 11 deletions

File tree

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<groupId>com.github.codemonstur</groupId>
55
<artifactId>embedded-redis</artifactId>
6-
<version>0.11.0</version>
6+
<version>0.12.0</version>
77
<packaging>jar</packaging>
88

99
<name>embedded-redis</name>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
0.12.0
2+
3+
Added force stop option in builder

src/test/java/redis/embedded/RedisServerTest.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public class RedisServerTest {
2121

2222
@Test(timeout = 1500L)
2323
public void testSimpleRun() throws Exception {
24-
redisServer = new RedisServer(6379);
24+
redisServer = new RedisServer(6381);
2525
redisServer.start();
2626
Thread.sleep(1000L);
2727
redisServer.stop();
@@ -30,7 +30,7 @@ public void testSimpleRun() throws Exception {
3030
@Test
3131
public void shouldAllowMultipleRunsWithoutStop() throws IOException {
3232
try {
33-
redisServer = new RedisServer(6379);
33+
redisServer = new RedisServer(6381);
3434
redisServer.start();
3535
redisServer.start();
3636
} finally {
@@ -40,7 +40,7 @@ public void shouldAllowMultipleRunsWithoutStop() throws IOException {
4040

4141
@Test
4242
public void shouldAllowSubsequentRuns() throws IOException {
43-
redisServer = new RedisServer(6379);
43+
redisServer = new RedisServer(6381);
4444
redisServer.start();
4545
redisServer.stop();
4646

@@ -53,10 +53,10 @@ public void shouldAllowSubsequentRuns() throws IOException {
5353

5454
@Test
5555
public void testSimpleOperationsAfterRun() throws IOException {
56-
redisServer = new RedisServer(6379);
56+
redisServer = new RedisServer(6381);
5757
redisServer.start();
5858

59-
try (final JedisPool pool = new JedisPool("localhost", 6379);
59+
try (final JedisPool pool = new JedisPool("localhost", 6381);
6060
final Jedis jedis = pool.getResource()) {
6161
jedis.mset("abc", "1", "def", "2");
6262

@@ -70,21 +70,21 @@ public void testSimpleOperationsAfterRun() throws IOException {
7070

7171
@Test
7272
public void shouldIndicateInactiveBeforeStart() throws IOException {
73-
redisServer = new RedisServer(6379);
73+
redisServer = new RedisServer(6381);
7474
assertFalse(redisServer.isActive());
7575
}
7676

7777
@Test
7878
public void shouldIndicateActiveAfterStart() throws IOException {
79-
redisServer = new RedisServer(6379);
79+
redisServer = new RedisServer(6381);
8080
redisServer.start();
8181
assertTrue(redisServer.isActive());
8282
redisServer.stop();
8383
}
8484

8585
@Test
8686
public void shouldIndicateInactiveAfterStop() throws IOException {
87-
redisServer = new RedisServer(6379);
87+
redisServer = new RedisServer(6381);
8888
redisServer.start();
8989
redisServer.stop();
9090
assertFalse(redisServer.isActive());

src/test/java/redis/embedded/SpringDataConnectivityTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ public class SpringDataConnectivityTest {
2020

2121
@Before
2222
public void setUp() throws IOException {
23-
redisServer = new RedisServer(6379);
23+
redisServer = new RedisServer(6381);
2424
redisServer.start();
2525

26-
JedisShardInfo shardInfo = new JedisShardInfo("localhost", 6379);
26+
JedisShardInfo shardInfo = new JedisShardInfo("localhost", 6381);
2727
connectionFactory = new JedisConnectionFactory();
2828
connectionFactory.setShardInfo(shardInfo);
2929

0 commit comments

Comments
 (0)