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

Can't inject ApplicationContext using test args in JUnit #1108

Open
mikehearn opened this issue Oct 3, 2024 · 0 comments
Open

Can't inject ApplicationContext using test args in JUnit #1108

mikehearn opened this issue Oct 3, 2024 · 0 comments

Comments

@mikehearn
Copy link
Contributor

Expected Behavior

class FooTest {
    @Test
    void foo(ApplicationContext context) { ... }
}

Actual Behaviour

Get an exception saying it can't be injected:

No ParameterResolver registered for parameter [io.micronaut.context.ApplicationContext arg0] in method

Steps To Reproduce

JUnit 5

Environment Information

n/a

Example Application

No response

Version

4.6.2

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