LockScheduler.java

1
package org.sanmibuh.tedee.lock.infrastructure.primary;
2
3
import lombok.RequiredArgsConstructor;
4
import org.sanmibuh.ddd.port.CommandBus;
5
import org.sanmibuh.tedee.lock.application.CloseLockCommand;
6
import org.springframework.stereotype.Component;
7
8
@Component
9
@RequiredArgsConstructor
10
public final class LockScheduler {
11
12
  private final CommandBus commandBus;
13
14
  public void closeLock(final int deviceId) {
15 1 1. closeLock : removed call to org/sanmibuh/ddd/port/CommandBus::dispatch → KILLED
    commandBus.dispatch(new CloseLockCommand(deviceId));
16
  }
17
}

Mutations

15

1.1
Location : closeLock
Killed by : org.sanmibuh.tedee.lock.infrastructure.primary.LockSchedulerTest.[engine:junit-jupiter]/[class:org.sanmibuh.tedee.lock.infrastructure.primary.LockSchedulerTest]/[method:should_dispatchCloseLockCommand_whenClosingLock()]
removed call to org/sanmibuh/ddd/port/CommandBus::dispatch → KILLED

Active mutators

Tests examined


Report generated by PIT 1.30.0 support