Fixed SPR-6734 by resticting record/replay logic to only entity methods that originated in a test method
This commit is contained in:
@@ -151,7 +151,7 @@ public abstract aspect AbstractMethodMockingControl percflow(mockStaticsTestMeth
|
|||||||
expectations.verify();
|
expectations.verify();
|
||||||
}
|
}
|
||||||
|
|
||||||
Object around() : methodToMock() {
|
Object around() : methodToMock() && cflowbelow(mockStaticsTestMethod()) {
|
||||||
if (recording) {
|
if (recording) {
|
||||||
expectations.expectCall(thisJoinPointStaticPart.toLongString(), thisJoinPoint.getArgs());
|
expectations.expectCall(thisJoinPointStaticPart.toLongString(), thisJoinPoint.getArgs());
|
||||||
// Return value doesn't matter
|
// Return value doesn't matter
|
||||||
|
|||||||
Reference in New Issue
Block a user