Skip to content

Commit ab8ecb5

Browse files
committed
TG-23050 Specifying returnValueFactory for @InTestsMock for Creating a Mocked Object
1 parent 8632424 commit ab8ecb5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main/java/com/diffblue/cover/annotations/InTestsMock.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,10 @@
8181

8282
/** @return String value or values to return from the {@link #method()} */
8383
String[] stringReturnValues() default {};
84+
85+
/**
86+
* @return name of the factory method used to create the object returned by the mocked {@link
87+
* #method()}
88+
*/
89+
String returnValueFactory() default "";
8490
}

0 commit comments

Comments
 (0)