Skip to content

Commit

Permalink
[ARQ-2231] The JUnit 5 container does not work with manual mode tests
Browse files Browse the repository at this point in the history
  • Loading branch information
petrberan committed Mar 25, 2024
1 parent e8f2aee commit d072038
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@ public void interceptTestMethod(Invocation<Void> invocation, ReflectiveInvocatio
public void interceptBeforeEachMethod(Invocation<Void> invocation,
ReflectiveInvocationContext<Method> invocationContext, ExtensionContext extensionContext) throws Throwable {
if (IS_INSIDE_ARQUILLIAN.test(extensionContext) || isRunAsClient(extensionContext)) {
invocation.proceed();
getManager(extensionContext).getAdaptor().before(
extensionContext.getRequiredTestInstance(),
extensionContext.getRequiredTestMethod(),
invocation::proceed);
} else {
invocation.skip();
}
Expand Down

0 comments on commit d072038

Please sign in to comment.