@@ -0,0 +1,885 @@
+package by.vorokhobko.start;%0A%0Aimport by.vorokhobko.Polymorphism.Input;%0Aimport by.vorokhobko.Polymorphism.StubInput;%0Aimport by.vorokhobko.Polymorphism.StartUI;%0Aimport by.vorokhobko.Encapsulation.start.Tracker;%0Aimport org.junit.Test;%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 23.02.2017.%0A */%0A%0Apublic class StubInputTest %7B%0A    /**%0A     * @Test.%0A     */%0A    @Test%0A    public void whenUserAddItem() %7B%0A        Tracker tracker = new Tracker();%0A        String name = %22testName%22;%0A        String desc = %22testDesc%22;%0A        String time = %2245%22;%0A%09%09String exit = %227%22;%0A        Input input = new StubInput(new String%5B%5D%7Bname, desc, time, exit%7D);%0A        new StartUI(input).init(tracker);%0A        assertThat(tracker.findAll()%5B0%5D.getName(), is(%22testName%22));%0A    %7D%0A%7D

add class StubInputTest