package com.twu.biblioteca;

import org.junit.Before;
import org.junit.Test;
import org.mockito.Matchers;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.mockito.MockitoAnnotations;

public class BibliotecaAppTest {
    private BibliotecaApp bibliotecaApp;

    @Mock
    private InputOutputHandler inputOutputHandlerStub;

    @Before
    public void setUp() {
        MockitoAnnotations.initMocks(this);
        bibliotecaApp = new BibliotecaApp(inputOutputHandlerStub);
    }

    @Test
    public void shouldInvokeAMethodOnOutputHandlerToDisplayWelcomeMessage() {
        bibliotecaApp.start();

        Mockito.verify(inputOutputHandlerStub).welcomeMessage();
    }

    @Test
    public void shouldInvokeAMethodOnOutputHandlerToDisplayAMenuWithListOfOptions() {
        bibliotecaApp.start();

        Mockito.verify(inputOutputHandlerStub).listOptions(Matchers.any(Menu.class));
    }
}
@@ -517,39 +517,41 @@
  void should
-InvokeA
+Use
 Method
+s
 On
+Input
 OutputHandle
@@ -719,23 +719,25 @@
 ould
-InvokeA
+Use
 Method
+s
 On
+Input
 Outp

Refactor - renamed methods in BibliotecaAppTest