@@ -0,0 +1,1000 @@
+package by.vorokhobko.Polymorphism;%0A%0Aimport org.junit.Test;%0Aimport static org.hamcrest.core.Is.is;%0Aimport static org.junit.Assert.assertThat;%0A%0A/**%0A * SquareTest.%0A *%0A * Class SquareTest for testing class Square part 005, lesson 2.%0A * @author Evgeny Vorokhobko (vorokhobko2011@yandex.ru).%0A * @since 04.04.2017.%0A * @version 1.%0A */%0A%0Apublic class SquareTest %7B%0A    /**%0A     * Test.%0A     * The method draws a square in pseudographics.%0A     */%0A    @Test%0A    public void drawingOfTheTriangle() %7B%0A        final int h = 5;%0A        final Shape square = new Square(h);%0A        String outPrint = %22*****%22%0A                + System.getProperty(%22line.separator%22) + %22*   *%22%0A                + System.getProperty(%22line.separator%22) + %22*   *%22%0A                + System.getProperty(%22line.separator%22) + %22*   *%22%0A                + System.getProperty(%22line.separator%22) + %22*****%22%0A                + System.getProperty(%22line.separator%22);%0A        String result = square.pic(square);%0A        assertThat(result, is(outPrint));%0A    %7D%0A%7D%0A

add Test class Square