DebugInfo.java

1
// Copyright © 2004-2006 University of Helsinki, Department of Computer Science
2
// Copyright © 2012 various contributors
3
// This software is released under GNU Lesser General Public License 2.1.
4
// The license text is at http://www.gnu.org/licenses/lgpl-2.1.html
5
6
package fi.helsinki.cs.titokone;
7
8
/**
9
 * This class is parent class for LoadInfo, CompileInfo and RunInfo. It
10
 * contains two fields for storing messages.
11
 */
12
13
14
public class DebugInfo {
15
16
    public DebugInfo() {
17
    }
18
19
    /**
20
     * This field contains message to the GUI's statusbar.
21
     */
22
    private String statusMessage;
23
24
    /**
25
     * This field contains comments made by debugger.
26
     */
27
    private String comments;
28
29
    /**
30
     * This method sets statusMessage field to given string.
31
     *
32
     * @param statusMessage String containing the message.
33
     */
34
    public void setStatusMessage(String statusMessage) {
35 1
        this.statusMessage = statusMessage;
36
    }
37
38
    /**
39
     * This method sets comments field to given string.
40
     *
41
     * @param comments String containing comments.
42
     */
43
    public void setComments(String comments) {
44 1
        this.comments = comments;
45
    }
46
47
48
    /**
49
     * This method returns statusmessage.
50
     *
51
     * @return String containing the message.
52
     */
53
    public String getStatusMessage() {
54 1
        return this.statusMessage;
55
    }
56
57
    /**
58
     * This method returns comments.
59
     *
60
     * @return String containing comments..
61
     */
62
    public String getComments() {
63 1
        return this.comments;
64
    }
65
}

Mutations

35

Removed assignment to member variable statusMessage : SURVIVED

44

Removed assignment to member variable comments : SURVIVED

54

mutated return of Object value for fi/helsinki/cs/titokone/DebugInfo::getStatusMessage to ( if (x != null) null else throw new RuntimeException ) : NO_COVERAGE

63

mutated return of Object value for fi/helsinki/cs/titokone/DebugInfo::getComments to ( if (x != null) null else throw new RuntimeException ) : NO_COVERAGE

Active mutators

Tests examined


Report generated by PIT 0.27