@@ -0,0 +1,1000 @@
+package org.itevents.mapper;%0A%0Aimport org.itevents.model.Event;%0Aimport org.itevents.model.Location;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.test.context.ContextConfiguration;%0Aimport org.springframework.test.context.junit4.SpringJUnit4ClassRunner;%0A%0Aimport java.util.GregorianCalendar;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0A/**%0A * Created by vaa25 on 22.07.2015.%0A */%0A@RunWith(SpringJUnit4ClassRunner.class)%0A@ContextConfiguration(locations = %7B%22/applicationContext.xml%22%7D)%0Apublic class EventMapperTest %7B%0A    @Autowired%0A    private EventMapper eventMapper;%0A%0A    @Test%0A    public void testGetEvent() throws Exception %7B%0A        Event expected = new Event(1, %22Java%22, new GregorianCalendar(2015, 6, 10).getTime(), null, %22http://www.java.com.ua%22,%0A                %22Beresteyska%22, new Location(50.458585, 30.742017), %22java@gmail.com%22);%0A        assertEquals(expected, eventMapper.getEvent(1));%0A    %7D%0A%7D

add EventMapperTest