Package main.ch.morrolan.gibb.snake

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


        Painter painter;

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

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

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


        painter = painter1(g);

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

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

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

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

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

        painter.drawRect(2.5, 1.5, 0.5, 0.5);
        verify(g).drawRect(13, 8, 3, 3);
View Full Code Here

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

        painter.drawRect(2.5, 1.5, 0.5, 0.5);
        verify(g).drawRect(13, 8, 3, 3);

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

        verify(g).drawRect(13, 8, 3, 3);

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

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

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

        painter = painter2(g);

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

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

        painter.drawRect(3.5, 4.5, 6, 6.5);
        verify(g).drawRect(25, 41, 42, 59);
View Full Code Here

        verify(g).drawRect(0, 0, 7, 9);

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

        painter.drawRect(3.5, 4.5, 6, 6.5);
        verify(g).drawRect(25, 41, 42, 59);

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

        painter.drawRect(3.5, 4.5, 6, 6.5);
        verify(g).drawRect(25, 41, 42, 59);

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

    @Test
    public void fillRect() {
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.