public class ToStringGenerator extends Object
new MockUtil().getMockName(mock)which later will call the "isMockitoMock" method which will return false and an exception will be thrown. The reason why "isMockitoMock" returns false is that the mock is not created by the Mockito CGLib Enhancer in case of static methods.
Constructor and Description |
---|
ToStringGenerator() |
Modifier and Type | Method and Description |
---|---|
String |
generate(Object mock,
Method method,
Object[] arguments) |
Copyright © 2007–2015. All rights reserved.