Skip to content

Move Neo4jContainer and CassandraContainer generics #1516

@philwebb

Description

@philwebb

Currently Neo4jContainer and CassandraContainer have generic types for SELF references but they don't generally appear to be designed for subclassing (in fact Neo4jContainer is final). I think it might be more useful if the generics were moved, i.e.:

public final class Neo4jContainer<S extends Neo4jContainer<S>> extends GenericContainer<S> {
    // ...
}

would become

public final class Neo4jContainer extends GenericContainer<Neo4jContainer> {
    // ...
}

This would allow the classes to be used without generating compiler warnings.

Metadata

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