ace-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1170529 - /incubator/ace/trunk/ace-deployment-task/src/test/java/org/apache/ace/deployment/task/DeploymentUpdateTaskTest.java
Date Wed, 14 Sep 2011 11:13:44 GMT
Author: marrs
Date: Wed Sep 14 11:13:44 2011
New Revision: 1170529

URL: http://svn.apache.org/viewvc?rev=1170529&view=rev
Log:
ACE-173 fixed a broken test case

Modified:
    incubator/ace/trunk/ace-deployment-task/src/test/java/org/apache/ace/deployment/task/DeploymentUpdateTaskTest.java

Modified: incubator/ace/trunk/ace-deployment-task/src/test/java/org/apache/ace/deployment/task/DeploymentUpdateTaskTest.java
URL: http://svn.apache.org/viewvc/incubator/ace/trunk/ace-deployment-task/src/test/java/org/apache/ace/deployment/task/DeploymentUpdateTaskTest.java?rev=1170529&r1=1170528&r2=1170529&view=diff
==============================================================================
--- incubator/ace/trunk/ace-deployment-task/src/test/java/org/apache/ace/deployment/task/DeploymentUpdateTaskTest.java
(original)
+++ incubator/ace/trunk/ace-deployment-task/src/test/java/org/apache/ace/deployment/task/DeploymentUpdateTaskTest.java
Wed Sep 14 11:13:44 2011
@@ -62,7 +62,11 @@ public class DeploymentUpdateTaskTest {
         m_deploymentTask = new DeploymentUpdateTask(m_task);
         TestUtils.configureObject(m_deploymentTask, LogService.class);
         TestUtils.configureObject(m_task, LogService.class);
-        TestUtils.configureObject(m_task, Identification.class);
+        TestUtils.configureObject(m_task, Identification.class, new Identification() {
+            public String getID() {
+                return "test";
+            }
+        });
         TestUtils.configureObject(m_task, Discovery.class);
         TestUtils.configureObject(m_task, Deployment.class, m_mockDeploymentService);
     }
@@ -137,7 +141,7 @@ public class DeploymentUpdateTaskTest {
         Version m_expectedInstallVersion = Version.emptyVersion;
 
         public String getName(Object object) throws IllegalArgumentException {
-            return ((Version) object).toString();
+            return "test";
         }
 
         public void setExpectedInstallVersion(Version version) {



Mime
View raw message