class AbstractXYZClass{
...
@AroundInvoke
public Object intercept(InvocationContext ctx) ... {
log("do intercepting");
ctx.proceed();
}
...
}
@Stateless
class XYZClass extends AbstractXYZClass{
...
public void iWantToTestThisMethod() {...}
...
}
(das auf dem Server läuft das Abhören für iWantToTestThisMethod()
adaequat)JUnit-Test AroundInvoke Interceptor
In meiner Unit-Tests (mit Nadel ... @ObjectUnderTest(implementation=XYZClass.class)
...) @AroundInvoke
nicht erhalten aufgerufen
Wie kann ich JUnit-Test XYZClass::iWantToTestThisMethod
mit intercept()
abfangen?
thx 4 die hinds! Ich werde es mir ansehen .. – HolzHacker