Demo.java

1
package com.demo;
2
3
import java.util.List;
4
import java.util.stream.Stream;
5
6
public class Demo {
7
    public String tryWithRecources(List<String> strings) {
8
        try (Stream<String> first = strings.stream()) {
9 1 1. tryWithRecources : replaced return value with "" for com/demo/Demo::tryWithRecources → KILLED
            return first.findFirst()
10
                    .orElse("bye");
11
        }
12
    }
13
}

Mutations

9

1.1
Location : tryWithRecources
Killed by : com.demo.DemoTest.shouldReturnFirstStringFromList(com.demo.DemoTest)
replaced return value with "" for com/demo/Demo::tryWithRecources → KILLED

Active mutators

Tests examined


Report generated by PIT 1.5.1