/*
 * Copyright (c) 2007 Mockito contributors
 * This program is made available under the terms of the MIT License.
 */
package org.mockitousage.junitrunner;

import static org.mockito.Mockito.*;

import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.runners.ConsoleSpammingMockitoJUnitRunner;
import org.mockitousage.IMethods;
import org.mockitoutil.TestBase;

@RunWith(ConsoleSpammingMockitoJUnitRunner.class)
public class ModellingVerboseMockitoTest extends TestBase {
    
    @Mock private IMethods mock;
    
    public void cleanStackTraces() {
        super.makeStackTracesClean();
    }
    
    @Ignore
    @Test
    public void shouldLogUnusedStubbingWarningWhenTestFails() throws Exception {
        when(mock.simpleMethod()).thenReturn("foo");
        
        fail();
    }
}
@@ -335,31 +335,23 @@
 runners.
-ConsoleSpamming
+Verbose
 MockitoJ
@@ -439,31 +439,32 @@
 %0A%0D%0A@
-RunWith(ConsoleSpamming
+Ignore%0D%0A@RunWith(Verbose
 Mock
@@ -687,21 +687,8 @@
   %0D%0A
-    @Ignore%0D%0A
     
@@ -807,16 +807,17 @@
 eMethod(
+1
 )).thenR
@@ -853,13 +853,85 @@
     
-fail(
+String ret = mock.simpleMethod(2);%0D%0A        %0D%0A        assertEquals(%22foo%22, ret
 );%0D%0A

In order to smooth up verbose mockito