File tree Expand file tree Collapse file tree
jspwiki-main/src/test/java/org/apache/wiki/workflow Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,9 +32,8 @@ Licensed to the Apache Software Foundation (ASF) under one
3232
3333public class TaskTest {
3434
35- TestEngine engine = TestEngine .build ();
36- // listen to workflow events
37- WorkflowManager workflowsEventListener = new DefaultWorkflowManager ();
35+ TestEngine engine ;
36+ WorkflowManager workflowsEventListener ;
3837 Workflow m_workflow ;
3938 Task m_task ;
4039
@@ -74,6 +73,8 @@ public Outcome execute(final Context context ) {
7473
7574 @ BeforeEach
7675 public void setUp () throws Exception {
76+ engine = TestEngine .build ();
77+ workflowsEventListener = new DefaultWorkflowManager ();
7778 workflowsEventListener .initialize ( engine , TestEngine .getTestProperties () );
7879 m_workflow = new Workflow ( "workflow.key" , new WikiPrincipal ( "Owner1" ) );
7980 m_task = new NormalTask ( m_workflow );
You can’t perform that action at this time.
0 commit comments