LockRequestedHandler.java

1
package org.sanmibuh.tedee.lock.infrastructure.secondary;
2
3
import lombok.RequiredArgsConstructor;
4
import org.sanmibuh.ddd.port.DomainEventHandler;
5
import org.sanmibuh.tedee.lock.domain.event.LockRequested;
6
import org.sanmibuh.tedee.lock.domain.vo.LockId;
7
import org.springframework.stereotype.Component;
8
9
@Component
10
@RequiredArgsConstructor
11
public final class LockRequestedHandler implements DomainEventHandler<LockRequested> {
12
13
  private final LockGateway lockGateway;
14
15
  @Override
16
  public void handle(final LockRequested event) {
17 1 1. handle : removed call to org/sanmibuh/tedee/lock/infrastructure/secondary/LockGateway::lock → KILLED
    lockGateway.lock(new LockId(event.deviceId()));
18
  }
19
}

Mutations

17

1.1
Location : handle
Killed by : org.sanmibuh.tedee.lock.infrastructure.secondary.LockRequestedHandlerTest.[engine:junit-jupiter]/[class:org.sanmibuh.tedee.lock.infrastructure.secondary.LockRequestedHandlerTest]/[method:should_lockTheDevice_whenHandlingLockRequested()]
removed call to org/sanmibuh/tedee/lock/infrastructure/secondary/LockGateway::lock → KILLED

Active mutators

Tests examined


Report generated by PIT 1.30.0 support