Package org.spockframework.mock
Class MockDetector
java.lang.Object
org.spockframework.mock.MockDetector
Detects mock objects and provides information about them.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns information about a mock object.boolean
Tells whether the given object is a (Spock) mock object.
-
Constructor Details
-
MockDetector
public MockDetector()
-
-
Method Details
-
isMock
Tells whether the given object is a (Spock) mock object.- Parameters:
object
- an arbitrary object- Returns:
- whether the given object is a (Spock) mock object
-
asMock
Returns information about a mock object.- Parameters:
object
- a mock object- Returns:
- information about the mock object
- Throws:
IllegalArgumentException
- if the given object is not a mock object
-