airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From patanac...@apache.org
Subject svn commit: r1166483 - in /incubator/airavata/trunk/modules/gfac-core/src/test/java/org/apache/airavata/core/gfac: factory/ services/impl/PropertiesBasedServiceImplTest.java
Date Thu, 08 Sep 2011 00:50:10 GMT
Author: patanachai
Date: Thu Sep  8 00:50:10 2011
New Revision: 1166483

URL: http://svn.apache.org/viewvc?rev=1166483&view=rev
Log:
Code cleanup

Modified:
    incubator/airavata/trunk/modules/gfac-core/src/test/java/org/apache/airavata/core/gfac/factory/
    incubator/airavata/trunk/modules/gfac-core/src/test/java/org/apache/airavata/core/gfac/services/impl/PropertiesBasedServiceImplTest.java

Modified: incubator/airavata/trunk/modules/gfac-core/src/test/java/org/apache/airavata/core/gfac/services/impl/PropertiesBasedServiceImplTest.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/gfac-core/src/test/java/org/apache/airavata/core/gfac/services/impl/PropertiesBasedServiceImplTest.java?rev=1166483&r1=1166482&r2=1166483&view=diff
==============================================================================
--- incubator/airavata/trunk/modules/gfac-core/src/test/java/org/apache/airavata/core/gfac/services/impl/PropertiesBasedServiceImplTest.java
(original)
+++ incubator/airavata/trunk/modules/gfac-core/src/test/java/org/apache/airavata/core/gfac/services/impl/PropertiesBasedServiceImplTest.java
Thu Sep  8 00:50:10 2011
@@ -131,18 +131,18 @@ public class PropertiesBasedServiceImplT
 			output.add("echo_output", echo_output);
 
 			// parameter
-			ct.addMessageContext("input", input);
-			ct.addMessageContext("output", output);
+			ct.addMessageContext(ParameterContextImpl.INPUT_KEY, input);
+			ct.addMessageContext(ParameterContextImpl.OUTPUT_KEY, output);
 
 			PropertiesBasedServiceImpl service = new PropertiesBasedServiceImpl();
 			service.init();
 			service.execute(ct);
 
-			Assert.assertNotNull(ct.getMessageContext("output"));
-			Assert.assertNotNull(ct.getMessageContext("output")
+			Assert.assertNotNull(ct.getMessageContext(ParameterContextImpl.OUTPUT_KEY));
+			Assert.assertNotNull(ct.getMessageContext(ParameterContextImpl.OUTPUT_KEY)
 					.getValue("echo_output"));
 			Assert.assertEquals("hello",
-					((AbstractParameter) ct.getMessageContext("output")
+					((AbstractParameter) ct.getMessageContext(ParameterContextImpl.OUTPUT_KEY)
 							.getValue("echo_output")).toStringVal());
 
 		} catch (Exception e) {



Mime
View raw message