LockId.java

1
package org.sanmibuh.tedee.lock.domain.vo;
2
3
import org.sanmibuh.ddd.domain.AggregateRootId;
4
import org.sanmibuh.tedee.lock.domain.exception.InvalidLockIdException;
5
6
public record LockId(Integer value) implements AggregateRootId<Integer> {
7
8
  public LockId {
9 2 1. <init> : changed conditional boundary → KILLED
2. <init> : negated conditional → KILLED
    if (value <= 0) {
10
      throw new InvalidLockIdException(value);
11
    }
12
  }
13
}

Mutations

9

1.1
Location : <init>
Killed by : org.sanmibuh.tedee.lock.domain.vo.LockIdTest.[engine:junit-jupiter]/[class:org.sanmibuh.tedee.lock.domain.vo.LockIdTest]/[test-template:should_throwException_whenDeviceIdIsNotPositive(int)]/[test-template-invocation:#1]
changed conditional boundary → KILLED

2.2
Location : <init>
Killed by : org.sanmibuh.tedee.lock.domain.vo.LockIdTest.[engine:junit-jupiter]/[class:org.sanmibuh.tedee.lock.domain.vo.LockIdTest]/[test-template:should_throwException_whenDeviceIdIsNotPositive(int)]/[test-template-invocation:#2]
negated conditional → KILLED

Active mutators

Tests examined


Report generated by PIT 1.30.0 support