X Tutup
Skip to content

Type-casting issues with fluent interface #151

@haines

Description

@haines

The Container#self() method doesn't return the correct type for subclasses of implementations. For example, the following will not compile because withEnv returns a GenericContainer not a DockerComposeContainer:

@ClassRule
public static DockerComposeContainer environment =
    new DockerComposeContainer(new File("src/test/resources/compose-test.yml"))
            .withEnv("SOMETHING", "hello world");

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      X Tutup