Initial commit for tests
ADD
modules/registry-refactoring/src/test/java/org/apache/airavata/registry/core/repositories/expcatalog/ExperimentRepositoryTest.java
+package org.apache.airavata.registry.core.repositories.expcatalog;
+
+import org.apache.airavata.registry.core.repositories.expcatalog.util.Initialize;
+import org.apache.airavata.registry.core.utils.DBConstants;
+import org.apache.airavata.registry.cpi.RegistryException;
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.assertFalse;
+
+public class ExperimentRepositoryTest {
+
+ private static Initialize initialize;
+ JobRepository jobRepository;
+ ProcessRepository processRepository;
+ ProcessResourceScheduleRepository processResourceScheduleRepository;
+ QueueStatusRepository queueStatusRepository;
+ TaskRepository taskRepository;
+ UserConfigurationDataRepository userConfigurationDataRepository;
+ ExperimentRepository experimentRepository;
+ private static final Logger logger = LoggerFactory.getLogger(ExperimentRepositoryTest.class);
+
+ @Before
+ public void setUp() {
+ try {
+ initialize = new Initialize("expcatalog-derby.sql");
+ initialize.initializeDB();
+ jobRepository = new JobRepository();
+ processRepository = new ProcessRepository();
+ processResourceScheduleRepository = new ProcessResourceScheduleRepository();
+ queueStatusRepository = new QueueStatusRepository();
+ taskRepository = new TaskRepository();
+ userConfigurationDataRepository = new UserConfigurationDataRepository();
+ experimentRepository = new ExperimentRepository();
+ } catch (Exception e) {
+ logger.error(e.getMessage(), e);
+ }
+ }
+
+ @After
+ public void tearDown() throws Exception {
+ System.out.println("********** TEAR DOWN ************");
+ initialize.stopDerbyServer();
+ }
+
+ @Test
+ public void ExperimentRepositoryTest() throws RegistryException {
+
+ }
+
+}

ADD
modules/registry-refactoring/src/test/java/org/apache/airavata/registry/core/repositories/expcatalog/ExperimentSummaryRepositoryTest.java
+package org.apache.airavata.registry.core.repositories.expcatalog;
+
+import org.apache.airavata.registry.core.repositories.expcatalog.util.Initialize;
+import org.apache.airavata.registry.core.utils.DBConstants;
+import org.apache.airavata.registry.cpi.RegistryException;
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.assertFalse;
+
+public class ExperimentSummaryRepositoryTest {
+
+ private static Initialize initialize;
+ ExperimentSummaryRepository experimentSummaryRepository;
+ private static final Logger logger = LoggerFactory.getLogger(ExperimentSummaryRepositoryTest.class);
+
+ @Before
+ public void setUp() {
+ try {
+ initialize = new Initialize("expcatalog-derby.sql");
+ initialize.initializeDB();
+ experimentSummaryRepository = new ExperimentSummaryRepository();
+ } catch (Exception e) {
+ logger.error(e.getMessage(), e);
+ }
+ }
+
+ @After
+ public void tearDown() throws Exception {
+ System.out.println("********** TEAR DOWN ************");
+ initialize.stopDerbyServer();
+ }
+
+ @Test
+ public void ExperimentSummaryRepositoryTest() throws RegistryException {
+
+ }
+
+}

ADD
modules/registry-refactoring/src/test/java/org/apache/airavata/registry/core/repositories/expcatalog/GatewayRepositoryTest.java
+package org.apache.airavata.registry.core.repositories.expcatalog;
+
+import org.apache.airavata.registry.core.repositories.expcatalog.util.Initialize;
+import org.apache.airavata.registry.core.utils.DBConstants;
+import org.apache.airavata.registry.cpi.RegistryException;
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.assertFalse;
+
+public class GatewayRepositoryTest {
+
+ private static Initialize initialize;
+ GatewayRepository gatewayRepository;
+ private static final Logger logger = LoggerFactory.getLogger(GatewayRepositoryTest.class);
+
+ @Before
+ public void setUp() {
+ try {
+ initialize = new Initialize("expcatalog-derby.sql");
+ initialize.initializeDB();
+ gatewayRepository = new GatewayRepository();
+ } catch (Exception e) {
+ logger.error(e.getMessage(), e);
+ }
+ }
+
+ @After
+ public void tearDown() throws Exception {
+ System.out.println("********** TEAR DOWN ************");
+ initialize.stopDerbyServer();
+ }
+
+ @Test
+ public void GatewayRepositoryTest() throws RegistryException {
+
+ }
+
+}

ADD
modules/registry-refactoring/src/test/java/org/apache/airavata/registry/core/repositories/expcatalog/NotificationRepositoryTest.java
+package org.apache.airavata.registry.core.repositories.expcatalog;
+
+import org.apache.airavata.registry.core.repositories.expcatalog.util.Initialize;
+import org.apache.airavata.registry.core.utils.DBConstants;
+import org.apache.airavata.registry.cpi.RegistryException;
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.assertFalse;
+
+public class NotificationRepositoryTest {
+
+ private static Initialize initialize;
+ NotificationRepository notificationRepository;
+ private static final Logger logger = LoggerFactory.getLogger(NotificationRepositoryTest.class);
+
+ @Before
+ public void setUp() {
+ try {
+ initialize = new Initialize("expcatalog-derby.sql");
+ initialize.initializeDB();
+ notificationRepository = new NotificationRepository();
+ } catch (Exception e) {
+ logger.error(e.getMessage(), e);
+ }
+ }
+
+ @After
+ public void tearDown() throws Exception {
+ System.out.println("********** TEAR DOWN ************");
+ initialize.stopDerbyServer();
+ }
+
+ @Test
+ public void NotificationRepositoryTest() throws RegistryException {
+
+ }
+
+}

ADD
modules/registry-refactoring/src/test/java/org/apache/airavata/registry/core/repositories/expcatalog/ProjectRepositoryTest.java
+package org.apache.airavata.registry.core.repositories.expcatalog;
+
+import org.apache.airavata.registry.core.repositories.expcatalog.util.Initialize;
+import org.apache.airavata.registry.core.utils.DBConstants;
+import org.apache.airavata.registry.cpi.RegistryException;
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.assertFalse;
+
+public class ProjectRepositoryTest {
+
+ private static Initialize initialize;
+ ProjectRepository projectRepository;
+ private static final Logger logger = LoggerFactory.getLogger(ProjectRepositoryTest.class);
+
+ @Before
+ public void setUp() {
+ try {
+ initialize = new Initialize("expcatalog-derby.sql");
+ initialize.initializeDB();
+ projectRepository = new ProjectRepository();
+ } catch (Exception e) {
+ logger.error(e.getMessage(), e);
+ }
+ }
+
+ @After
+ public void tearDown() throws Exception {
+ System.out.println("********** TEAR DOWN ************");
+ initialize.stopDerbyServer();
+ }
+
+ @Test
+ public void ProjectRepositoryTest() throws RegistryException {
+
+ }
+
+}

Initial commit for tests