File tree Expand file tree Collapse file tree
experimental/fluent/func/src
main/java/io/serverlessworkflow/fluent/func
test/java/io/serverlessworkflow/fluent/func
fluent/spec/src/test/java/io/serverlessworkflow/fluent/spec/dsl Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -222,11 +222,9 @@ public FuncTaskItemListBuilder wait(
222222 return wait (null , itemsConfigurer );
223223 }
224224
225- public FuncTaskItemListBuilder wait (
226- String name , Consumer <WaitTaskBuilder > itemsConfigurer ) {
225+ public FuncTaskItemListBuilder wait (String name , Consumer <WaitTaskBuilder > itemsConfigurer ) {
227226 name = this .defaultNameAndRequireConfig (name , itemsConfigurer , "wait" );
228- final WaitTaskBuilder waitTaskBuilder =
229- new WaitTaskBuilder ();
227+ final WaitTaskBuilder waitTaskBuilder = new WaitTaskBuilder ();
230228 itemsConfigurer .accept (waitTaskBuilder );
231229 return this .addTaskItem (new TaskItem (name , new Task ().withWaitTask (waitTaskBuilder .build ())));
232230 }
Original file line number Diff line number Diff line change 1515 */
1616package io .serverlessworkflow .fluent .func ;
1717
18- import java .time .Duration ;
19-
2018import static io .serverlessworkflow .fluent .func .dsl .FuncDSL .tasks ;
2119import static io .serverlessworkflow .fluent .spec .dsl .DSL .timeoutSeconds ;
2220import static org .junit .jupiter .api .Assertions .assertEquals ;
2321import static org .junit .jupiter .api .Assertions .assertNotNull ;
2422
2523import io .serverlessworkflow .api .types .Workflow ;
2624import io .serverlessworkflow .fluent .func .dsl .FuncDSL ;
25+ import java .time .Duration ;
2726import org .junit .jupiter .api .Test ;
2827
2928public class FuncDSLWaitTest {
Original file line number Diff line number Diff line change 1515 */
1616package io .serverlessworkflow .fluent .spec .dsl ;
1717
18- import java .time .Duration ;
19-
2018import static io .serverlessworkflow .fluent .spec .dsl .DSL .waitMinutes ;
2119import static io .serverlessworkflow .fluent .spec .dsl .DSL .waitSeconds ;
2220import static org .assertj .core .api .Assertions .assertThat ;
2321
2422import io .serverlessworkflow .api .types .DurationInline ;
2523import io .serverlessworkflow .api .types .Workflow ;
2624import io .serverlessworkflow .fluent .spec .WorkflowBuilder ;
25+ import java .time .Duration ;
2726import org .junit .jupiter .api .Test ;
2827
2928public class DSLWaitTest {
You can’t perform that action at this time.
0 commit comments