Overriding System time for testing (#4779)
* Overriding System time for testing * Remove Joda Date Time examples
This commit is contained in:
committed by
maibin
parent
a9e4ebff6d
commit
2fec9da2d5
+9
@@ -0,0 +1,9 @@
|
||||
package com.baeldung.aspect;
|
||||
|
||||
public aspect ChangeCallsToCurrentTimeInMillisMethod {
|
||||
long around():
|
||||
call(public static native long java.lang.System.currentTimeMillis())
|
||||
&& within(user.code.base.pckg.*) {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user