@@ -105,9 +105,9 @@ public void testPutVarPython() throws IOException, InterruptedException {
105105 service .putVar ("my_number" , 123 );
106106
107107 // Verify the variable is accessible in subsequent tasks
108- Task task = service .task ("task.outputs['result'] = my_number * 2" ).waitFor ();
108+ Task task = service .task ("my_number * 2" ).waitFor ();
109109 assertComplete (task );
110- Number result = (Number ) task .outputs . get ( " result" );
110+ Number result = (Number ) task .result ( );
111111 assertEquals (246 , result .intValue ());
112112 }
113113 }
@@ -123,9 +123,9 @@ public void testPutVarGroovy() throws IOException, InterruptedException {
123123 service .putVar ("my_string" , "test" );
124124
125125 // Verify the variable is accessible in subsequent tasks
126- Task task = service .task ("task.outputs['result'] = my_string.toUpperCase()" ).waitFor ();
126+ Task task = service .task ("my_string.toUpperCase()" ).waitFor ();
127127 assertComplete (task );
128- String result = (String ) task .outputs . get ( " result" );
128+ String result = (String ) task .result ( );
129129 assertEquals ("TEST" , result );
130130 }
131131 }
@@ -142,9 +142,9 @@ public void testPutVarList() throws IOException, InterruptedException {
142142 service .putVar ("my_list" , values );
143143
144144 // Verify the list is accessible and can be manipulated
145- Task task = service .task ("task.outputs['result'] = sum(my_list)" ).waitFor ();
145+ Task task = service .task ("sum(my_list)" ).waitFor ();
146146 assertComplete (task );
147- Number result = (Number ) task .outputs . get ( " result" );
147+ Number result = (Number ) task .result ( );
148148 assertEquals (15 , result .intValue ());
149149 }
150150 }
0 commit comments