@@ -0,0 +1,717 @@
+package by.vorokhobko.AbstractClasses;%0A%0Aimport org.junit.Test;%0Aimport java.io.ByteArrayInputStream;%0Aimport static org.junit.Assert.assertThat;%0Aimport static org.hamcrest.core.Is.is;%0A%0A/**%0A * Test.%0A *%0A * @author Evgeny Vorokhobko (vorokhobko2011@yandex.ru).%0A * @version 1.%0A * @since 19.04.2017.%0A */%0Apublic class ValidateInputTest %7B%0A    /**%0A     * Test.%0A     */%0A    @Test%0A    public void whenTheUserEstablishesContactWithTheProgram() %7B%0A        ByteArrayInputStream in = new ByteArrayInputStream(%221%22.getBytes());%0A        System.setIn(in);%0A        int result = 1;%0A        int%5B%5D range = %7B0, 1, 2, 3, 4, 5, 6, 7, 8, 9%7D;%0A        int test = new ValidateInput().ask(%22test%22, range);%0A        assertThat(result, is(test));%0A    %7D%0A%7D

add class ValidateInputTest