SimpleActionPerformer.java

1
package com.github.dakusui.actionunit.visitors;
2
3
import com.github.dakusui.actionunit.core.Action;
4
import com.github.dakusui.actionunit.core.Context;
5
6
public class SimpleActionPerformer extends ActionPerformer implements Action.Visitor {
7
8
  private SimpleActionPerformer() {
9
    this(Context.create());
10
  }
11
12
  private SimpleActionPerformer(Context context) {
13
    super(context);
14
  }
15
16
  @Override
17
  protected void callAccept(Action action, Action.Visitor visitor) {
18 1 1. callAccept : removed call to com/github/dakusui/actionunit/core/Action::accept → KILLED
    action.accept(visitor);
19
  }
20
21
  @Override
22
  protected SimpleActionPerformer newInstance(Context context) {
23 1 1. newInstance : replaced return value with null for com/github/dakusui/actionunit/visitors/SimpleActionPerformer::newInstance → KILLED
    return new SimpleActionPerformer(context);
24
  }
25
26
  public static SimpleActionPerformer create() {
27 1 1. create : replaced return value with null for com/github/dakusui/actionunit/visitors/SimpleActionPerformer::create → KILLED
    return new SimpleActionPerformer();
28
  }
29
}

Mutations

18

1.1
Location : callAccept
Killed by : com.github.dakusui.actionunit.scenarios.CompatActionSupportTest.sequentialTest(com.github.dakusui.actionunit.scenarios.CompatActionSupportTest)
removed call to com/github/dakusui/actionunit/core/Action::accept → KILLED

23

1.1
Location : newInstance
Killed by : com.github.dakusui.actionunit.scenarios.ActionSupportTest.givenParallelAction$whenPerformed$thenWorksFine(com.github.dakusui.actionunit.scenarios.ActionSupportTest)
replaced return value with null for com/github/dakusui/actionunit/visitors/SimpleActionPerformer::newInstance → KILLED

27

1.1
Location : create
Killed by : com.github.dakusui.actionunit.scenarios.CompatActionSupportTest.unsupportedActionType$composite(com.github.dakusui.actionunit.scenarios.CompatActionSupportTest)
replaced return value with null for com/github/dakusui/actionunit/visitors/SimpleActionPerformer::create → KILLED

Active mutators

Tests examined


Report generated by PIT 1.7.3