@@ -0,0 +1,1305 @@
+package com.vishnus1224.teamworkapidemo.mapper;%0A%0Aimport com.vishnus1224.teamworkapidemo.TestDataStore;%0Aimport com.vishnus1224.teamworkapidemo.model.LatestActivityDto;%0Aimport com.vishnus1224.teamworkapidemo.model.Section;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0Aimport static org.junit.Assert.*;%0A%0A/**%0A * Created by Vishnu on 9/7/2016.%0A */%0Apublic class LatestActivityToSectionMapperTest extends TestDataStore %7B%0A%0A    private LatestActivityToSectionMapper mapper;%0A%0A    @Before%0A    public void setUp() throws Exception %7B%0A%0A        mapper = new LatestActivityToSectionMapper();%0A%0A    %7D%0A%0A    @Test%0A    public void testMap() throws Exception %7B%0A%0A        List%3CLatestActivityDto%3E latestActivityDtoList = new ArrayList%3C%3E();%0A%0A        LatestActivityDto latestActivityDto = createLatestActivityDto(%224676%22, %22test%22, %22my project%22);%0A%0A        latestActivityDto.companyName = %22abc%22;%0A%0A        latestActivityDtoList.add(latestActivityDto);%0A%0A        List%3CSection%3CLatestActivityDto%3E%3E sectionList = mapper.map(latestActivityDtoList);%0A%0A        assertNotNull(sectionList);%0A%0A        assertEquals(sectionList.size(), 1);%0A%0A        assertEquals(sectionList.get(0).getSectionNumber(), 0);%0A%0A        assertEquals(sectionList.get(0).getSectionTitle(), %22my project : abc%22);%0A%0A    %7D%0A%7D

test for latest activity dto to section mapper