package org.testcontainers.junit.jupiter.inheritance;

import org.junit.jupiter.api.Test;
import org.testcontainers.junit.jupiter.Container;

import static org.junit.jupiter.api.Assertions.assertEquals;

class InheritedTests extends AbstractTestBase {

    @Container
    private RedisContainer myRedis = new RedisContainer();

    @Test
    void step1() {
        assertEquals(1, redisPerClass.getJedis().incr("key").longValue());
        assertEquals(1, redisPerTest.getJedis().incr("key").longValue());
        assertEquals(1, myRedis.getJedis().incr("key").longValue());
    }

    @Test
    void step2() {
        assertEquals(2, redisPerClass.getJedis().incr("key").longValue());
        assertEquals(1, redisPerTest.getJedis().incr("key").longValue());
        assertEquals(1, myRedis.getJedis().incr("key").longValue());
    }
}

@@ -406,36 +406,24 @@
 .incr(%22key%22)
-.longValue()
 );%0A        a
@@ -468,36 +468,24 @@
 .incr(%22key%22)
-.longValue()
 );%0A        a
@@ -525,36 +525,24 @@
 .incr(%22key%22)
-.longValue()
 );%0A    %7D%0A%0A  
@@ -624,36 +624,24 @@
 .incr(%22key%22)
-.longValue()
 );%0A        a
@@ -686,36 +686,24 @@
 .incr(%22key%22)
-.longValue()
 );%0A        a
@@ -751,20 +751,8 @@
 ey%22)
-.longValue()
 );%0A 

Fix for API changes in Jedis