@@ -0,0 +1,1910 @@
+package io.ganchix.github.morphia.utils;%0A%0Aimport io.ganchix.github.morphia.utils.context.error.SpringApplicationAcceptNoSpringBootApplication;%0Aimport io.ganchix.github.morphia.utils.context.normal.SpringApplicationTest;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.springframework.context.annotation.AnnotationConfigApplicationContext;%0Aimport org.springframework.test.context.junit4.SpringJUnit4ClassRunner;%0A%0Aimport java.util.List;%0Aimport java.util.Set;%0A%0Aimport static org.hamcrest.CoreMatchers.is;%0Aimport static org.hamcrest.MatcherAssert.assertThat;%0A%0A/**%0A * Created by Rafael R%C3%ADos on 5/05/17.%0A */%0A@RunWith(SpringJUnit4ClassRunner.class)%0Apublic class MorphiaUtilsTest %7B%0A%0A    @Test(expected = Exception.class)%0A    public void testWhenNoApplicationAnnotation_ShouldReturnAException() %7B%0A        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(SpringApplicationAcceptNoSpringBootApplication.class);%0A        MorphiaUtils.getApplicationPackageName(context);%0A    %7D%0A%0A    @Test%0A    public void testCallGetPackageName_ShouldReturnAPackageName() %7B%0A        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(SpringApplicationTest.class);%0A        List%3CString%3E applicationPackageName = MorphiaUtils.getApplicationPackageName(context);%0A        assertThat(applicationPackageName.size(), is(1));%0A        assertThat(applicationPackageName.get(0), is(%22es.ganchix.morphia.utils.context.normal%22));%0A    %7D%0A%0A    @Test%0A    public void testCallGetClasses_ShouldReturnAClassesInPackage() %7B%0A        Set%3CClass%3C?%3E%3E classes = MorphiaUtils.getClasses(%22es.ganchix.morphia.utils.context.normal%22);%0A        assertThat(classes.size(), is(2));%0A%0A    %7D%0A    @Test%0A    public void testCallGetClasses_ShouldReturnAClassesInPackage1() %7B%0A        Set%3CClass%3C?%3E%3E classes = MorphiaUtils.getClasses(%22es.ganchix.morphia.utils.context.normal.NotClass.class%22);%0A    %7D%0A%0A%0A%7D%0A

Add tests