blob: cc2dabac0f8f6c1ef824b1e80c6f9697c381601b [file] [log] [blame]
/*
* Copyright (c) 2007 Mockito contributors
* This program is made available under the terms of the MIT License.
*/
package org.mockito.internal.verification;
import org.junit.Test;
import org.mockito.exceptions.base.MockitoException;
import org.mockito.internal.invocation.InvocationBuilder;
import org.mockito.internal.invocation.InvocationMatcher;
import org.mockitoutil.TestBase;
import static junit.framework.TestCase.fail;
public class VerificationDataImplTest extends TestBase {
@Test
public void shouldToStringBeNotVerifiable() throws Exception {
InvocationMatcher toString = new InvocationBuilder().method("toString").toInvocationMatcher();
try {
new VerificationDataImpl(null, toString);
fail();
} catch (MockitoException e) {}
}
}