@@ -0,0 +1,2044 @@
+package ru.revdaalex.lsp.chapterI.control;%0A%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0Aimport ru.revdaalex.lsp.chapterI.food.Apple;%0Aimport ru.revdaalex.lsp.chapterI.food.Cucumbers;%0Aimport ru.revdaalex.lsp.chapterI.food.Tomatoes;%0Aimport ru.revdaalex.lsp.chapterI.interfaces.Storage;%0Aimport ru.revdaalex.lsp.chapterI.storage.Shop;%0Aimport ru.revdaalex.lsp.chapterI.storage.Trash;%0Aimport ru.revdaalex.lsp.chapterI.storage.Warehouse;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.GregorianCalendar;%0A%0Aimport static org.junit.Assert.*;%0A%0A/**%0A * ControllQuality Class Test.%0A * Created by revdaalex on 28.07.2016.%0A */%0Apublic class ControllQualityTest %7B%0A    ArrayList%3CStorage%3E list = new ArrayList%3CStorage%3E();%0A%0A    /**%0A     * Test sort food in warehouse.%0A     */%0A    @Test%0A    public void testSortWarehouse()%7B%0A        Storage warehouse = new Warehouse();%0A        list.add(warehouse);%0A        ControllQuality control = new ControllQuality(list);%0A        Apple apple = new Apple(%22%D0%AF%D0%B1%D0%BB%D0%BE%D0%BA%D0%BE%22, new GregorianCalendar(2016, 8, 25), new GregorianCalendar(2016, 8, 3), 50);%0A        control.sort(apple);%0A        Assert.assertTrue(warehouse.getFood().contains(apple));%0A    %7D%0A%0A    /**%0A     * Test sort food in shop.%0A     */%0A    @Test%0A    public void testSortShop()%7B%0A        Storage shop = new Shop();%0A        list.add(shop);%0A        ControllQuality control = new ControllQuality(list);%0A        Cucumbers cucumbers = new Cucumbers(%22%D0%9E%D0%B3%D1%83%D1%80%D1%86%D1%8B%22, new GregorianCalendar(2016, 8, 9), new GregorianCalendar(2016, 7, 30), 25);%0A        control.sort(cucumbers);%0A        Assert.assertTrue(shop.getFood().contains(cucumbers));%0A    %7D%0A%0A    /**%0A     * Test sort food in trash.%0A     */%0A    @Test%0A    public void testSortTrash()%7B%0A        Storage trash = new Trash();%0A        list.add(trash);%0A        ControllQuality control = new ControllQuality(list);%0A        Tomatoes tomatoes = new Tomatoes(%22%D0%A2%D0%BE%D0%BC%D0%B0%D1%82%D1%8B%22, new GregorianCalendar(2016, 7, 5), new GregorianCalendar(2016, 6, 30), 130);%0A        control.sort(tomatoes);%0A        Assert.assertTrue(trash.getFood().contains(tomatoes));%0A    %7D%0A%0A%7D

add ControllQualityTest.java