Deleting gateway and project entities in tests
MODIFY
modules/registry-refactoring/src/test/java/org/apache/airavata/registry/core/repositories/expcatalog/ExperimentRepositoryTest.java
modules/registry-refactoring/src/test/java/org/apache/airavata/registry/core/repositories/expcatalog/ExperimentRepositoryTest.java
@@ -153,6 +153,9 @@ public class ExperimentRepositoryTest {
experimentRepository.removeExperiment(experimentId);
assertFalse(experimentRepository.isExperimentExist(experimentId));
+
+ gatewayRepository.removeGateway(gatewayId);
+ projectRepository.removeProject(projectId);
}
}

MODIFY
modules/registry-refactoring/src/test/java/org/apache/airavata/registry/core/repositories/expcatalog/JobRepositoryTest.java
modules/registry-refactoring/src/test/java/org/apache/airavata/registry/core/repositories/expcatalog/JobRepositoryTest.java
@@ -130,6 +130,8 @@ public class JobRepositoryTest {
jobRepository.removeJob(cis);
assertFalse(jobRepository.isJobExist(cis));
+ gatewayRepository.removeGateway(gatewayId);
+ projectRepository.removeProject(projectId);
}
}

MODIFY
modules/registry-refactoring/src/test/java/org/apache/airavata/registry/core/repositories/expcatalog/ProcessRepositoryTest.java
modules/registry-refactoring/src/test/java/org/apache/airavata/registry/core/repositories/expcatalog/ProcessRepositoryTest.java
@@ -159,6 +159,9 @@ public class ProcessRepositoryTest {
experimentRepository.removeExperiment(experimentId);
processRepository.removeProcess(processId);
assertFalse(processRepository.isProcessExist(processId));
+
+ gatewayRepository.removeGateway(gatewayId);
+ projectRepository.removeProject(projectId);
}
}

MODIFY
modules/registry-refactoring/src/test/java/org/apache/airavata/registry/core/repositories/expcatalog/ProjectRepositoryTest.java
modules/registry-refactoring/src/test/java/org/apache/airavata/registry/core/repositories/expcatalog/ProjectRepositoryTest.java
@@ -84,6 +84,8 @@ public class ProjectRepositoryTest {
projectRepository.removeProject(projectId);
assertFalse(projectRepository.isProjectExist(projectId));
+
+ gatewayRepository.removeGateway(gatewayId);
}
}

MODIFY
modules/registry-refactoring/src/test/java/org/apache/airavata/registry/core/repositories/expcatalog/TaskRepositoryTest.java
modules/registry-refactoring/src/test/java/org/apache/airavata/registry/core/repositories/expcatalog/TaskRepositoryTest.java
@@ -125,6 +125,8 @@ public class TaskRepositoryTest {
taskRepository.removeTask(taskId);
assertFalse(taskRepository.isTaskExist(taskId));
+ gatewayRepository.removeGateway(gatewayId);
+ projectRepository.removeProject(projectId);
}
}

Deleting gateway and project entities in tests