Request.java

1
/*******************************************************************************
2
 * Copyhacked (H) 2012-2020.
3
 * This program and the accompanying materials
4
 * are made available under no term at all, use it like
5
 * you want, but share and discuss about it
6
 * every time possible with every body.
7
 * 
8
 * Contributors:
9
 *      ron190 at ymail dot com - initial implementation
10
 ******************************************************************************/
11
package com.jsql.model.bean.util;
12
13
/**
14
 * A request sent by the Model to the View in order to update the main window.
15
 * Used with the Observer pattern.
16
 */
17
public class Request {
18
    
19
    /**
20
     * Message identifier for the interaction.
21
     */
22
    private Interaction message;
23
    
24
    /**
25
     * List of custom parameters.
26
     */
27
    private Object[] parameters;
28
29
30
    // Getter and setter
31
32
    public Interaction getMessage() {
33 1 1. getMessage : replaced return value with null for com/jsql/model/bean/util/Request::getMessage → NO_COVERAGE
        return this.message;
34
    }
35
36
    public Object[] getParameters() {
37 1 1. getParameters : replaced return value with null for com/jsql/model/bean/util/Request::getParameters → NO_COVERAGE
        return this.parameters;
38
    }
39
40
    public void setMessage(Interaction message) {
41
        this.message = message;
42
    }
43
44
    public void setParameters(Object... parameters) {
45
        this.parameters = parameters;
46
    }
47
}

Mutations

33

1.1
Location : getMessage
Killed by : none
replaced return value with null for com/jsql/model/bean/util/Request::getMessage → NO_COVERAGE

37

1.1
Location : getParameters
Killed by : none
replaced return value with null for com/jsql/model/bean/util/Request::getParameters → NO_COVERAGE

Active mutators

Tests examined


Report generated by PIT 1.16.1