1 /* 2 * Copyright (c) 2007 Mockito contributors 3 * This program is made available under the terms of the MIT License. 4 */ 5 package org.mockito.internal.verification; 6 7 import static org.junit.Assert.fail; 8 9 import org.junit.Test; 10 import org.mockito.exceptions.base.MockitoException; 11 import org.mockito.internal.invocation.InvocationBuilder; 12 import org.mockito.internal.invocation.InvocationMatcher; 13 import org.mockitoutil.TestBase; 14 15 public class VerificationDataImplTest extends TestBase { 16 17 @Test shouldToStringBeNotVerifiable()18 public void shouldToStringBeNotVerifiable() throws Exception { 19 InvocationMatcher toString = 20 new InvocationBuilder().method("toString").toInvocationMatcher(); 21 try { 22 new VerificationDataImpl(null, toString); 23 fail(); 24 } catch (MockitoException e) { 25 } 26 } 27 } 28