@@ -0,0 +1,1183 @@
+package net.inpercima.runandfun.service;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0Aimport java.util.List;%0A%0Aimport net.inpercima.runandfun.Application;%0Aimport net.inpercima.runandfun.model.Activity;%0A%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.boot.test.SpringApplicationConfiguration;%0Aimport org.springframework.data.domain.Page;%0Aimport org.springframework.data.domain.PageRequest;%0Aimport org.springframework.data.domain.Pageable;%0Aimport org.springframework.data.domain.Sort.Direction;%0Aimport org.springframework.test.context.junit4.SpringJUnit4ClassRunner;%0A%0A@RunWith(SpringJUnit4ClassRunner.class)%0A@SpringApplicationConfiguration(classes = Application.class)%0Apublic class ActivityRepositoryTest %7B%0A%0A    @Autowired%0A    ActivityRepository repository;%0A%0A    @Test%0A    public final void findAllOrderByDateDesc() %7B%0A        final Pageable pageable = new PageRequest(0, 1, Direction.DESC, Activity.FIELD_DATE);%0A        final Page%3CActivity%3E page = repository.findAll(pageable);%0A        final List%3CActivity%3E content = page.getContent();%0A        assertEquals(1, content.size());%0A    %7D%0A%7D%0A

add ActivityRepositoryTest