package com.justjournal.db;

import com.justjournal.Util;
import com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource;
import org.apache.cayenne.access.DataContext;
import org.apache.cayenne.configuration.server.ServerRuntime;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;

import static org.junit.Assert.assertEquals;

public class LocationDaoTests {
    @BeforeClass
    public static void setup() throws Exception {
        Util.setupDb();
    }

    @Test
    public void testView() throws Exception {
        assertEquals(5, LocationDao.view().size());
    }
}
@@ -62,356 +62,52 @@
 ort 
-com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource;%0Aimport org.apache.cayenne.access.DataContext;%0Aimport org.apache.cayenne.configuration.server.ServerRuntime;%0Aimport org.junit.Before;%0Aimport org.junit.BeforeClass;%0Aimport org.junit.Test;%0A%0Aimport javax.naming.Context;%0Aimport javax.naming.InitialContext;%0Aimport javax.naming.NamingException
+org.junit.BeforeClass;%0Aimport org.junit.Test
 ;%0A%0Ai

remove useless includes