@@ -0,0 +1,1460 @@
+package window.display;%0A%0Aimport org.junit.After;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport window.listener.WindowAdapterBase;%0A%0Aimport javax.swing.*;%0A%0Aimport static junit.framework.Assert.assertNotNull;%0Aimport static org.mockito.Mockito.spy;%0Aimport static org.mockito.Mockito.verify;%0A%0A/**%0A * Created by vicboma on 15/10/15.%0A */%0Apublic class DisplayTest %7B%0A%0A    private Display display;%0A%0A    @Before%0A    public void setUp() throws Exception %7B%0A        createDisplay();%0A    %7D%0A%0A    @After%0A    public void tearDown() throws Exception %7B%0A        display = null;%0A    %7D%0A%0A    @Test%0A    public void testCreate() throws Exception %7B%0A        createDisplay();%0A        assertNotNull(%22Is null%22, display);%0A    %7D%0A%0A    @Test%0A    public void testAddComponentPanel() throws Exception %7B%0A        final JPanel panel = new JPanel();%0A        final Display displaySpy = spy(display);%0A        displaySpy.addComponentPanel(panel);%0A        verify(displaySpy).addComponentPanel(panel);%0A    %7D%0A%0A    @Test%0A    public void testValidate() throws Exception %7B%0A        final Display displaySpy = spy(display);%0A        displaySpy.validate();%0A        verify(displaySpy).validate();%0A    %7D%0A%0A    private void createDisplay() %7B%0A        final JPanel jpanel = new JPanel();%0A        final WindowAdapterBase windowAdapterBase = WindowAdapterBase.create();%0A        final JFrame frame = new JFrame(Display.DECORATOR_PATTERN);%0A        display = Display.create(frame, jpanel, windowAdapterBase);%0A    %7D%0A%7D

add Test Display