UUIDPrimaryKeyGenerator.java

1
package com.reallifedeveloper.tools.test.database.inmemory;
2
3
import java.util.UUID;
4
5
import org.checkerframework.checker.nullness.qual.Nullable;
6
7
/**
8
 * A primary key generator that generates random UUIDs.
9
 *
10
 * @author RealLifeDeveloper
11
 */
12
public class UUIDPrimaryKeyGenerator implements PrimaryKeyGenerator<String> {
13
14
    @Override
15
    public String nextPrimaryKey(@Nullable String previousMax) {
16 1 1. nextPrimaryKey : replaced return value with "" for com/reallifedeveloper/tools/test/database/inmemory/UUIDPrimaryKeyGenerator::nextPrimaryKey → NO_COVERAGE
        return UUID.randomUUID().toString();
17
    }
18
19
}

Mutations

16

1.1
Location : nextPrimaryKey
Killed by : none
replaced return value with "" for com/reallifedeveloper/tools/test/database/inmemory/UUIDPrimaryKeyGenerator::nextPrimaryKey → NO_COVERAGE

Active mutators

Tests examined


Report generated by PIT 1.20.2