Package gov.nasa.arc.mct.gui.View

Examples of gov.nasa.arc.mct.gui.View.GlassPanel.paintComponent()


        manifestation.exitLockedState();
        Graphics mockGraphics = Mockito.mock(Graphics.class);
        Rectangle rectangle = new Rectangle();
        Mockito.when(mockGraphics.getClipBounds()).thenReturn(rectangle);
        controlGlass.paintComponent(mockGraphics);
        Mockito.verify(mockGraphics).setColor(Mockito.any(Color.class));
        Mockito.verify(mockGraphics).fillRect(0, 0, 0, 0);
       
        // now check that we don't use the graphics context when we are in transparent mode
        manifestation.enterLockedState();
View Full Code Here


        Mockito.verify(mockGraphics).fillRect(0, 0, 0, 0);
       
        // now check that we don't use the graphics context when we are in transparent mode
        manifestation.enterLockedState();
        Graphics mockGraphics2 = Mockito.mock(Graphics.class);
        controlGlass.paintComponent(mockGraphics2);
        Mockito.verifyNoMoreInteractions(mockGraphics2);
    }

    @SuppressWarnings("serial")
    @Test
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.