@@ -0,0 +1,2078 @@
+package ca.antonious.viewcelladapter.sectiontests;%0A%0Aimport org.junit.Test;%0A%0Aimport java.util.Arrays;%0A%0Aimport ca.antonious.viewcelladapter.TestViewCell;%0Aimport ca.antonious.viewcelladapter.sections.Section;%0Aimport ca.antonious.viewcelladapter.viewcells.AbstractViewCell;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0A/**%0A * Created by george on 2017-08-21.%0A */%0A%0Apublic class AbstractSectionTests %7B%0A    @Test%0A    public void test_sectionIsVisibleByDefault() %7B%0A        AbstractViewCell viewCell1 = new TestViewCell(%22ITEM-1%22);%0A        AbstractViewCell viewCell2 = new TestViewCell(%22ITEM-2%22);%0A        AbstractViewCell viewCell3 = new TestViewCell(%22ITEM-3%22);%0A%0A        Section section = new Section();%0A        section.setAll(Arrays.asList(viewCell1, viewCell2, viewCell3));%0A%0A        int expectedCount = 3;%0A        int actualCount = section.getItemCount();%0A%0A        assertEquals(expectedCount, actualCount);%0A    %7D%0A%0A    @Test%0A    public void test_getItemCount_returnsItemCountIfSectionIsVisible() %7B%0A        AbstractViewCell viewCell1 = new TestViewCell(%22ITEM-1%22);%0A        AbstractViewCell viewCell2 = new TestViewCell(%22ITEM-2%22);%0A        AbstractViewCell viewCell3 = new TestViewCell(%22ITEM-3%22);%0A%0A        Section section = new Section();%0A        section.setAll(Arrays.asList(viewCell1, viewCell2, viewCell3));%0A        section.setVisibile(false);%0A        section.setVisibile(true);%0A%0A        int expectedCount = 3;%0A        int actualCount = section.getItemCount();%0A%0A        assertEquals(expectedCount, actualCount);%0A    %7D%0A%0A    @Test%0A    public void test_getItemCount_returnsZeroIfSectionIsNotVisible() %7B%0A        AbstractViewCell viewCell1 = new TestViewCell(%22ITEM-1%22);%0A        AbstractViewCell viewCell2 = new TestViewCell(%22ITEM-2%22);%0A        AbstractViewCell viewCell3 = new TestViewCell(%22ITEM-3%22);%0A%0A        Section section = new Section();%0A        section.setAll(Arrays.asList(viewCell1, viewCell2, viewCell3));%0A        section.setVisibile(false);%0A%0A        int expectedCount = 0;%0A        int actualCount = section.getItemCount();%0A%0A        assertEquals(expectedCount, actualCount);%0A    %7D%0A%7D%0A

Add test for visibility