]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - org.argeo.slc.core/src/main/java/org/argeo/slc/core/test/TestRunDescriptor.java
Restructure deployment
[gpl/argeo-slc.git] / org.argeo.slc.core / src / main / java / org / argeo / slc / core / test / TestRunDescriptor.java
index 3e3d2bec5b968cbd30fdac879dfe8484d28bb0c9..d136e802c3b365f1ec8cd5ed830a712005a244b7 100644 (file)
@@ -17,10 +17,11 @@ public class TestRunDescriptor {
                testRunUuid = testRun.getUuid();\r
 \r
                if (testRun.getTestResult() != null)\r
-                       testResultUuid = testRun.<TestResult>getTestResult().getUuid();\r
+                       testResultUuid = testRun.<TestResult> getTestResult().getUuid();\r
 \r
                if (testRun.getDeployedSystem() != null)\r
-                       deployedSytemId = testRun.<DeployedSystem>getDeployedSystem().getDeployedSystemId();\r
+                       deployedSytemId = testRun.<DeployedSystem> getDeployedSystem()\r
+                                       .getDeployedSystemId();\r
 \r
                if (testRun instanceof SimpleTestRun) {\r
                        slcExecutionUuid = ((SimpleTestRun) testRun).getSlcExecutionUuid();\r
@@ -69,4 +70,12 @@ public class TestRunDescriptor {
                this.deployedSytemId = deploymentId;\r
        }\r
 \r
+       @Override\r
+       public boolean equals(Object obj) {\r
+               if (obj instanceof TestRunDescriptor) {\r
+                       return getTestRunUuid().equals(\r
+                                       ((TestRunDescriptor) obj).getTestRunUuid());\r
+               }\r
+               return false;\r
+       }\r
 }\r