Skip to content

extends and implements with type matchers #2

@nelt

Description

@nelt
assertThat(
                compiled.getClass("org.generated.ValueList").getGenericInterfaces()[0],
                is(genericType().baseClass(Iterable.class).withParameters(typeParameter().named("E")))
        );

should be replaceable with :

assertThat(
                compiled.getClass("org.generated.ValueList"),
                is(anInterface().extendingInterafce(genericType().baseClass(Iterable.class).withParameters(typeParameter().named("E"))))
        );

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