Annotation Type StubValue
-
@Documented @Retention(RUNTIME) @Target(PARAMETER) public @interface StubValue
A stub value represents the (boxed) default value of the intercepted method's return type. This value can only be assigned to aObject
parameter. This annotation is useful to conditionally return a default value from a method when using anObject
return type in combination with theRuntimeType
annotation. The value is either representingnull
if a method returns a reference type orvoid
or a boxed primitive of the return type representing the numeric value0
.