Skip to content

Change return type to Stream<? extends TestTemplateInvocationContext> #3577

@sormuras

Description

@sormuras

https://github.com/junit-team/junit5/blob/f5b78f68c6a90dfa63611c7a10027581c5d913ba/junit-jupiter-api/src/main/java/org/junit/jupiter/api/extension/TestTemplateInvocationContextProvider.java#L87

Michael wrote:

I mean I tried to do Stream.generate(() -> new MyInvocationContext()).limit(/*number*/)
This does not work.
but Stream.generate(() -> new MyInvocationContext()).limit(/*number*/).map(e -> e) works...

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions