|
|
|
@ -8,18 +8,17 @@ import org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegis
|
|
|
|
|
import org.gcube.informationsystem.resourceregistry.contexts.entities.ContextManagement;
|
|
|
|
|
import org.gcube.informationsystem.resourceregistry.dbinitialization.DatabaseEnvironment;
|
|
|
|
|
import org.gcube.informationsystem.utils.ElementMapper;
|
|
|
|
|
import org.gcube.informationsystem.utils.discovery.ElementSpecilizationDiscovery;
|
|
|
|
|
import org.junit.Test;
|
|
|
|
|
import org.slf4j.Logger;
|
|
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
|
|
|
|
|
|
public class DataBaseCreator extends ContextTest {
|
|
|
|
|
|
|
|
|
|
private static Logger logger = LoggerFactory.getLogger(ElementSpecilizationDiscovery.class);
|
|
|
|
|
private static Logger logger = LoggerFactory.getLogger(DataBaseCreator.class);
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
|
public void createDatabase() throws Exception {
|
|
|
|
|
logger.debug("Goint to create DB");
|
|
|
|
|
logger.debug("Going to create DB");
|
|
|
|
|
String db = DatabaseEnvironment.DB_URI;
|
|
|
|
|
logger.debug("{} created", db);
|
|
|
|
|
}
|
|
|
|
|