Skip to content

Commit 638652e

Browse files
Move engine init to @beforeeach method to see if that's enough to fix GH builds. No version bump
1 parent 6c9e4d7 commit 638652e

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

jspwiki-main/src/test/java/org/apache/wiki/workflow/TaskTest.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,8 @@ Licensed to the Apache Software Foundation (ASF) under one
3232

3333
public 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 );

0 commit comments

Comments
 (0)