@ObjectUnderTest(implementation=XYZClass.class)
...) Benim birim testlerinde
JUnit test AroundInvoke keseni
(iWantToTestThisMethod()
için durdurma çalışıyor Server üzerinde bu çalıştıran)
class AbstractXYZClass{
...
@AroundInvoke
public Object intercept(InvocationContext ctx) ... {
log("do intercepting");
ctx.proceed();
}
...
}
@Stateless
class XYZClass extends AbstractXYZClass{
...
public void iWantToTestThisMethod() {...}
...
}
@AroundInvoke
çağrılan almaz
araya girerek JUnit-testini XYZClass::iWantToTestThisMethod
nasıl yapabilirim?
thx 4 arkaları! ona bir bakacağım .. – HolzHacker