-
Notifications
You must be signed in to change notification settings - Fork 194
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
NullPointerException when interceptBeforeEach in @Nested class invoke method that has fields with @EJB or @Inject annotation #331
Comments
I am also having this same issue. However it seems like it's not necessarily an issue with
The above example is stripped down do highlight where Injection seems to work but my actual code looks very like the original example with an abstract arqullian test class annotated with |
Bug report / Enhancement
Issue Overview
NPE is fired before @test method is executed in @nested class.
Expected Behaviour
NPE isn't throw and @test runs successfuly
Steps To Reproduce
When debug it:
the condition predicate says that it runs insideArquillian
TestMethodTestDescriptor: [engine:junit-jupiter]/[class:integration.de.ids.acos.et.server.dao.ooe.type.TypeLevelReferenceDaoIntegrationTest]/[nested-class:NestedTest]/[method:testx()]
testInstances are:
[integration.de.ids.acos.et.server.dao.ooe.type.TypeLevelReferenceDaoIntegrationTest@3d91b4a1, integration.de.ids.acos.et.server.dao.ooe.type.TypeLevelReferenceDaoIntegrationTest$NestedTest@5dcbafbe]
The text was updated successfully, but these errors were encountered: