Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to inject WireMockServer in multithreaded tests #15

Open
jflefebvre06 opened this issue Jun 26, 2019 · 0 comments
Open

Failed to inject WireMockServer in multithreaded tests #15

jflefebvre06 opened this issue Jun 26, 2019 · 0 comments

Comments

@jflefebvre06
Copy link

jflefebvre06 commented Jun 26, 2019

Hello,

My code is :

private static List<String> mySource() {
// Rerurn list of String -> myArg argument)
}

@ParameterizedTest
    @MethodSource("mySource")
    public void myTest(final String myArg, @Wiremock final WireMockServer mockServer) {
....
}

I get the exeption belowed:

org.junit.jupiter.api.extension.ParameterResolutionException: Failed to resolve parameter [com.github.tomakehurst.wiremock.WireMockServer arg1] in method [public void com.atelier.ant.task.gitlab.RegisterIssuesReporterTaskUT.registerIssuesReporterTaskNoExceptionTest(org.apache.tools.ant.BuildEvent,com.github.tomakehurst.wiremock.WireMockServer)]: Can't inject more than one server

Wors file into eclipse (junit eclipse plugin not run tests in parallel) but failed with surefire

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant