Skip to content

Hard dependency on junit4 Rules #2083

Closed

Description

Version: 1.12.3

@Container
public static KafkaContainer kafka = new KafkaContainer(TestContainerHelper.TEST_KAFKA_CONTAINER_VERSION);

The test containers (in my case Kafka) extend from 'GenericContainer'.
Then we have:

GenericContainer extends FailureDetectingExternalResource implements TestRule

The problem is that when you are trying to get rid of all your junit4 dependencies it fails at runtime.
The library is compatible Junit5 but this is an annoying restriction for people who want to migrate 100%.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions