Package main.ch.morrolan.gibb.snake

Examples of main.ch.morrolan.gibb.snake.Painter.fillRect()


        Painter painter;

        g = gMock();
        painter = painter1(g);

        painter.fillRect(0, 0, 1, 1);
        verify(g).fillRect(0, 0, 10, 10);

        painter.fillRect(3, 5, 2, 3);
        verify(g).fillRect(30, 50, 20, 30);
View Full Code Here


        painter = painter1(g);

        painter.fillRect(0, 0, 1, 1);
        verify(g).fillRect(0, 0, 10, 10);

        painter.fillRect(3, 5, 2, 3);
        verify(g).fillRect(30, 50, 20, 30);

        painter.setTileSize(5);
        painter.fillRect(6, 1, 6, 5);
        verify(g).fillRect(30, 5, 30, 25);
View Full Code Here

        painter.fillRect(3, 5, 2, 3);
        verify(g).fillRect(30, 50, 20, 30);

        painter.setTileSize(5);
        painter.fillRect(6, 1, 6, 5);
        verify(g).fillRect(30, 5, 30, 25);


        g = gMock();
        painter = painter2(g);
View Full Code Here


        g = gMock();
        painter = painter2(g);

        painter.fillRect(0, 0, 1, 1);
        verify(g).fillRect(0, 0, 7, 9);

        painter.fillRect(3, 5, 2, 3);
        verify(g).fillRect(21, 45, 14, 27);
View Full Code Here

        painter = painter2(g);

        painter.fillRect(0, 0, 1, 1);
        verify(g).fillRect(0, 0, 7, 9);

        painter.fillRect(3, 5, 2, 3);
        verify(g).fillRect(21, 45, 14, 27);

        painter.setTileSize(5);
        painter.fillRect(6, 1, 6, 5);
        verify(g).fillRect(30, 5, 30, 25);
View Full Code Here

        painter.fillRect(3, 5, 2, 3);
        verify(g).fillRect(21, 45, 14, 27);

        painter.setTileSize(5);
        painter.fillRect(6, 1, 6, 5);
        verify(g).fillRect(30, 5, 30, 25);

    }

    @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.