public MethodCallTester<MonitoredClass> assertMethodNotCalled( String name, Class<?>... paramTypes) { assertFalse( "Method " + mockClass.getSimpleName() + "." + name + "(" + Arrays.toString(paramTypes) + ") was called but no call was expected", wasMethodCalled(name, paramTypes)); return this; }
public MethodCallTester<MonitoredClass> assertMethodCalled( String name, Object... expectedParamValues) { assertTrue( "Method " + mockClass.getSimpleName() + "." + name + "(" + Arrays.toString(expectedParamValues) + ") was not called", wasMethodCalled(name, expectedParamValues)); return this; }
@SuppressWarnings("unused") public MethodCallTester<MonitoredClass> assertMethodNotCalled( String name, Object... expectedParamValues) { assertFalse( "Method " + mockClass.getSimpleName() + "." + name + "(" + Arrays.toString(expectedParamValues) + ") was called but no call was expected", wasMethodCalled(name, expectedParamValues)); return this; }