1616package io .serverlessworkflow .impl .test ;
1717
1818import static io .serverlessworkflow .fluent .func .dsl .FuncDSL .function ;
19- import static io .serverlessworkflow .fluent .func .dsl .FuncDSL .taskInput ;
20- import static io .serverlessworkflow .fluent .func .dsl .FuncDSL .taskOutput ;
19+ import static io .serverlessworkflow .fluent .func .dsl .FuncDSL .input ;
20+ import static io .serverlessworkflow .fluent .func .dsl .FuncDSL .output ;
2121
2222import io .serverlessworkflow .api .types .Workflow ;
2323import io .serverlessworkflow .fluent .func .FuncWorkflowBuilder ;
24- import io .serverlessworkflow .fluent .func .dsl .FuncDSL ;
2524import io .serverlessworkflow .impl .WorkflowApplication ;
2625import io .serverlessworkflow .impl .WorkflowDefinition ;
2726import io .serverlessworkflow .impl .WorkflowModel ;
3130class FuncDSLEnrichWithTest {
3231
3332 @ Test
34- void test_input_with_taskInput_from () {
33+ void test_input_with_input_from () {
3534
3635 SoftAssertions softly = new SoftAssertions ();
3736
@@ -49,7 +48,7 @@ void test_input_with_taskInput_from() {
4948 .inputFrom (
5049 (object , workflowContext ) -> {
5150 softly .assertThat (object ).isEqualTo (15L );
52- Long input = FuncDSL . taskInput (workflowContext , Long .class );
51+ Long input = input (workflowContext , Long .class );
5352 softly .assertThat (input ).isEqualTo (10L );
5453 return object + input ;
5554 },
@@ -90,7 +89,7 @@ void test_enrich_Input_with_workflowInput_task() {
9089 Long .class )
9190 .inputFrom (
9291 (object , workflowContext ) ->
93- FuncDSL . taskInput (workflowContext , Long .class )))
92+ input (workflowContext , Long .class )))
9493 .build ();
9594
9695 try (WorkflowApplication app = WorkflowApplication .builder ().build ()) {
@@ -104,7 +103,7 @@ void test_enrich_Input_with_workflowInput_task() {
104103 }
105104
106105 @ Test
107- void test_output_as_with_taskInput_utility () {
106+ void test_output_as_with_input_utility () {
108107
109108 SoftAssertions softly = new SoftAssertions ();
110109
@@ -121,7 +120,7 @@ void test_output_as_with_taskInput_utility() {
121120 .outputAs (
122121 (object , workflowContext , taskContextData ) -> {
123122 softly .assertThat (object ).isEqualTo (15L );
124- Long input = FuncDSL . taskInput (workflowContext , Long .class );
123+ Long input = input (workflowContext , Long .class );
125124 softly .assertThat (input ).isEqualTo (10L );
126125 return input + object ;
127126 },
@@ -141,7 +140,7 @@ void test_output_as_with_taskInput_utility() {
141140 }
142141
143142 @ Test
144- void test_export_as_with_taskInput_utility () {
143+ void test_export_as_with_input_utility () {
145144
146145 SoftAssertions softly = new SoftAssertions ();
147146
@@ -157,7 +156,7 @@ void test_export_as_with_taskInput_utility() {
157156 Long .class )
158157 .exportAs (
159158 (object , workflowContext , taskContextData ) -> {
160- Long input = taskOutput (taskContextData , Long .class );
159+ Long input = output (taskContextData , Long .class );
161160 softly .assertThat (input ).isEqualTo (15L );
162161 return input * 2 ;
163162 }))
@@ -183,7 +182,7 @@ void test_using_fluent() {
183182 function ("sumFive" , (Long input ) -> input + 5 , Long .class )
184183 .inputFrom (
185184 (object , workflowContext , taskContextData ) ->
186- taskInput (taskContextData , Long .class ) * 2 ))
185+ input (taskContextData , Long .class ) * 2 ))
187186 .build ();
188187
189188 try (WorkflowApplication app = WorkflowApplication .builder ().build ()) {
0 commit comments