Skip to content

ParameterResolutionException with TestInfo and Parameterized Tests #935

@littleclay

Description

@littleclay

When trying to get the TestInfo as an argument to a parameterized test method an error is thrown. I'm attaching the pom and test java file in the simple testing project I'm seeing this with.

Archive.zip

The error being thrown when I run mvn clean test is:

org.junit.jupiter.api.extension.ParameterResolutionException: Discovered multiple competing
ParameterResolvers for parameter [org.junit.jupiter.api.TestInfo arg0] in executable [void
com.foo.FooTest.testParameterizedFoo(org.junit.jupiter.api.TestInfo,java.lang.String)]:
org.junit.jupiter.engine.extension.TestInfoParameterResolver,
org.junit.jupiter.params.ParameterizedTestParameterResolver

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions