StoreIrrigationInInventoryAction.java

1
package com.takenoko.actions.irrigation;
2
3
import com.takenoko.actions.Action;
4
import com.takenoko.actions.ActionResult;
5
import com.takenoko.actions.annotations.ActionAnnotation;
6
import com.takenoko.actions.annotations.ActionType;
7
import com.takenoko.engine.Board;
8
import com.takenoko.engine.BotManager;
9
10
@ActionAnnotation(ActionType.FORCED)
11
public class StoreIrrigationInInventoryAction implements Action {
12
    @Override
13
    public ActionResult execute(Board board, BotManager botManager) {
14 1 1. execute : removed call to com/takenoko/engine/BotManager::displayMessage → TIMED_OUT
        botManager.displayMessage(
15
                botManager.getName() + " stored an irrigation channel in inventory");
16 1 1. execute : removed call to com/takenoko/inventory/Inventory::collectIrrigationChannel → TIMED_OUT
        botManager.getInventory().collectIrrigationChannel();
17 1 1. execute : removed call to com/takenoko/stats/SingleBotStatistics::updateActions → TIMED_OUT
        botManager.getSingleBotStatistics().updateActions(getClass().getSimpleName());
18 1 1. execute : replaced return value with null for com/takenoko/actions/irrigation/StoreIrrigationInInventoryAction::execute → KILLED
        return new ActionResult(1);
19
    }
20
}

Mutations

14

1.1
Location : execute
Killed by : none
removed call to com/takenoko/engine/BotManager::displayMessage → TIMED_OUT

16

1.1
Location : execute
Killed by : none
removed call to com/takenoko/inventory/Inventory::collectIrrigationChannel → TIMED_OUT

17

1.1
Location : execute
Killed by : none
removed call to com/takenoko/stats/SingleBotStatistics::updateActions → TIMED_OUT

18

1.1
Location : execute
Killed by : com.takenoko.engine.GameEngineTest.[engine:junit-jupiter]/[class:com.takenoko.engine.GameEngineTest]/[nested-class:TestRunGame]/[method:runGame_shouldDisplayALotOfMessages()]
replaced return value with null for com/takenoko/actions/irrigation/StoreIrrigationInInventoryAction::execute → KILLED

Active mutators

Tests examined


Report generated by PIT 1.8.0