Skip to content

Commit 23cbeb3

Browse files
committed
Fix for API changes in Jedis
Use `long` primitive instead of boxed type.
1 parent 5c5d4df commit 23cbeb3

File tree

1 file changed

+6
-6
lines changed
  • modules/junit-jupiter/src/test/java/org/testcontainers/junit/jupiter/inheritance

1 file changed

+6
-6
lines changed

modules/junit-jupiter/src/test/java/org/testcontainers/junit/jupiter/inheritance/InheritedTests.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ class InheritedTests extends AbstractTestBase {
1212

1313
@Test
1414
void step1() {
15-
assertEquals(1, redisPerClass.getJedis().incr("key").longValue());
16-
assertEquals(1, redisPerTest.getJedis().incr("key").longValue());
17-
assertEquals(1, myRedis.getJedis().incr("key").longValue());
15+
assertEquals(1, redisPerClass.getJedis().incr("key"));
16+
assertEquals(1, redisPerTest.getJedis().incr("key"));
17+
assertEquals(1, myRedis.getJedis().incr("key"));
1818
}
1919

2020
@Test
2121
void step2() {
22-
assertEquals(2, redisPerClass.getJedis().incr("key").longValue());
23-
assertEquals(1, redisPerTest.getJedis().incr("key").longValue());
24-
assertEquals(1, myRedis.getJedis().incr("key").longValue());
22+
assertEquals(2, redisPerClass.getJedis().incr("key"));
23+
assertEquals(1, redisPerTest.getJedis().incr("key"));
24+
assertEquals(1, myRedis.getJedis().incr("key"));
2525
}
2626
}

0 commit comments

Comments
 (0)