Incident.java

1
/*
2
 * Copyright (c) 2013 Maxim Yunusov
3
 *    Licensed under the Apache License, Version 2.0 (the "License");
4
 *    you may not use this file except in compliance with the License.
5
 *    You may obtain a copy of the License at
6
 *
7
 *        http://www.apache.org/licenses/LICENSE-2.0
8
 *
9
 *    Unless required by applicable law or agreed to in writing, software
10
 *    distributed under the License is distributed on an "AS IS" BASIS,
11
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
 *    See the License for the specific language governing permissions and
13
 *    limitations under the License.
14
 */
15
16
package org.maxur.perfmodel.backend.domain;
17
18
import javax.xml.bind.annotation.XmlRootElement;
19
import java.io.Serializable;
20
import java.util.List;
21
22
import static java.util.Arrays.stream;
23
import static java.util.stream.Collectors.toList;
24
25
/**
26
 * @author Maxim Yunusov
27
 * @version 1.0
28
 * @since <pre>11/25/13</pre>
29
 */
30
@XmlRootElement
31
public class Incident implements Serializable {
32
33
    private static final long serialVersionUID = 2368849548039200044L;
34
35
    private String message;
36
37
    @SuppressWarnings("UnusedDeclaration")
38
    public Incident() {
39
    }
40
41
    public Incident(final String message) {
42
        this.message = message;
43
    }
44
45
    public static List<Incident> incidents(final String... messages) {
46 1 1. incidents : mutated return of Object value for org/maxur/perfmodel/backend/domain/Incident::incidents to ( if (x != null) null else throw new RuntimeException ) → NO_COVERAGE
        return stream(messages).map(Incident::new).collect(toList());
47
    }
48
49
    @SuppressWarnings("UnusedDeclaration")
50
    public String getMessage() {
51 1 1. getMessage : mutated return of Object value for org/maxur/perfmodel/backend/domain/Incident::getMessage to ( if (x != null) null else throw new RuntimeException ) → NO_COVERAGE
        return message;
52
    }
53
}

Mutations

46

1.1
Location : incidents
Killed by : none
mutated return of Object value for org/maxur/perfmodel/backend/domain/Incident::incidents to ( if (x != null) null else throw new RuntimeException ) → NO_COVERAGE

51

1.1
Location : getMessage
Killed by : none
mutated return of Object value for org/maxur/perfmodel/backend/domain/Incident::getMessage to ( if (x != null) null else throw new RuntimeException ) → NO_COVERAGE

Active mutators

Tests examined


Report generated by PIT 1.1.6