Skip to content

Remove JUnit 4 dependency #3101

@pkubowicz

Description

@pkubowicz

Testcontainers does not run if JUnit 4 is not present on classpath because GenericContainer implements JUnit 4 TestRule.

Spring Boot 2.4 will remove JUnit 4 from classpath. Having both versions of JUnit on classpath is inconvenient for authoring tests, as developer is constantly forced to choose a proper import when typing @Test etc.

I think Testcontainers should have a roadmap for releasing a version without JUnit 4 dependency.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions