@@ -0,0 +1,2610 @@
+package ca.antonious.viewcelladapter.decoratortests;%0A%0Aimport org.junit.Test;%0A%0Aimport ca.antonious.viewcelladapter.TestViewCell;%0Aimport ca.antonious.viewcelladapter.decorators.EmptySectionDecorator;%0Aimport ca.antonious.viewcelladapter.sections.Section;%0Aimport ca.antonious.viewcelladapter.viewcells.AbstractViewCell;%0A%0Aimport static org.junit.Assert.*;%0A%0A/**%0A * Created by George on 2016-12-18.%0A */%0A%0Apublic class EmptySectionDecoratorTests %7B%0A    @Test%0A    public void test_getItemCount_ifDecoratedSectionIsEmpty_returnsOne() %7B%0A        Section section = new Section();%0A        AbstractViewCell emptyViewCell = new TestViewCell(%22EMPTY%22);%0A        EmptySectionDecorator emptySectionDecorator = new EmptySectionDecorator(section, emptyViewCell);%0A%0A        int expectedItemCount = 1;%0A        int actualItemCount = emptySectionDecorator.getItemCount();%0A%0A        assertEquals(expectedItemCount, actualItemCount);%0A    %7D%0A%0A    @Test%0A    public void test_getItemCount_ifDecoratedSectionIsNotEmpty_returnCountOfDecoratedSection() %7B%0A        AbstractViewCell emptyViewCell = new TestViewCell(%22EMPTY%22);%0A        AbstractViewCell sectionItem1 = new TestViewCell(%22ITEM1%22);%0A%0A        Section section = new Section();%0A        section.add(sectionItem1);%0A%0A        EmptySectionDecorator emptySectionDecorator = new EmptySectionDecorator(section, emptyViewCell);%0A%0A        int expectedItemCount = 1;%0A        int actualItemCount = emptySectionDecorator.getItemCount();%0A%0A        assertEquals(expectedItemCount, actualItemCount);%0A    %7D%0A%0A    @Test%0A    public void test_getZero_ifDecoratedSectionIsEmpty_returnsEmptyViewCell() %7B%0A        Section section = new Section();%0A        AbstractViewCell emptyViewCell = new TestViewCell(%22EMPTY%22);%0A        EmptySectionDecorator emptySectionDecorator = new EmptySectionDecorator(section, emptyViewCell);%0A%0A        AbstractViewCell expectedViewCell = emptyViewCell;%0A        AbstractViewCell actualViewCell = emptySectionDecorator.get(0);%0A%0A        assertEquals(expectedViewCell, actualViewCell);%0A    %7D%0A%0A    @Test%0A    public void test_getZero_ifDecoratedSectionIsNotEmpty_returnsFirstViewCell() %7B%0A        AbstractViewCell emptyViewCell = new TestViewCell(%22EMPTY%22);%0A        AbstractViewCell sectionItem1 = new TestViewCell(%22ITEM1%22);%0A%0A        Section section = new Section();%0A        section.add(sectionItem1);%0A%0A        EmptySectionDecorator emptySectionDecorator = new EmptySectionDecorator(section, emptyViewCell);%0A%0A        AbstractViewCell expectedViewCell = sectionItem1;%0A        AbstractViewCell actualViewCell = emptySectionDecorator.get(0);%0A%0A        assertEquals(expectedViewCell, actualViewCell);%0A    %7D%0A%7D%0A

Add EmptySectionDecoratorTests