@@ -0,0 +1,916 @@
+package by.vorokhobko;%0A%0Aimport org.junit.Test;%0Aimport static org.hamcrest.core.Is.is;%0Aimport static org.junit.Assert.assertThat;%0A%0A/**%0A * Test.%0A *%0A * @author Evgeny Vorokhobko (vorokhobko2011@yandex.ru).%0A * @version 1.%0A * @since 03.01.2017.%0A */%0A%0Apublic class SubstringTest %7B%0A    /**%0A     * @Test.%0A     */%0A    @Test%0A    public void whenTheSubstringIsInTheString() %7B%0A%09%09final Substring s = new Substring();%0A%09%09final String origin = %22The Empire strikes back%22;%0A%09%09final String sub = %22back%22;%0A%09%09final boolean temp = true;%0A%09%09final boolean result = s.contains(origin, sub);%0A%09%09assertThat(result, is(temp));%0A%09%7D%0A%09/**%0A     * @Test.%0A     */%0A    @Test%0A    public void whenSubstringIsNotInString() %7B%0A%09%09final Substring s = new Substring();%0A%09%09final String origin = %22The Empire strikes back%22;%0A%09%09final String sub = %22jedi%22;%0A%09%09final boolean temp = false;%0A%09%09final boolean result = s.contains(origin, sub);%0A%09%09assertThat(result, is(temp));%0A%09%7D%0A%7D

add class SubstringTest