Skip to content

Package: Telefonnummer

Telefonnummer

nameinstructionbranchcomplexitylinemethod
Telefonnummer()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getTyp()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getWert()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
setTyp(String)
M: 0 C: 4
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 2
100%
M: 0 C: 1
100%
setWert(String)
M: 0 C: 4
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 2
100%
M: 0 C: 1
100%

Coverage

1: package example;
2:
3: import com.thoughtworks.xstream.annotations.XStreamAlias;
4:
5: /**
6: * Simple Klasse, um einige Attribute zu testen. Auch wird hier ein Alias geprüft.
7: */
8: @XStreamAlias("Telefon")
9: public class Telefonnummer {
10:         
11:         private String typ;
12:         private String wert;
13:         
14:         /**
15:          * Üblicher Getter für das Attribut typ.
16:          *
17:          * @return liefert typ.
18:          */
19:         public String getTyp() {
20:                 return this.typ;
21:         }
22:         
23:         /**
24:          * Üblicher Setter für das Attribut typ.
25:          *
26:          * @param typ
27:          * Setzt den Parameter {@code typ} in das Feld typ.
28:          */
29:         public void setTyp(final String typ) {
30:                 this.typ = typ;
31:         }
32:         
33:         /**
34:          * Üblicher Getter für das Attribut wert.
35:          *
36:          * @return liefert wert.
37:          */
38:         public String getWert() {
39:                 return this.wert;
40:         }
41:         
42:         /**
43:          * Üblicher Setter für das Attribut wert.
44:          *
45:          * @param wert
46:          * Setzt den Parameter {@code wert} in das Feld wert.
47:          */
48:         public void setWert(final String wert) {
49:                 this.wert = wert;
50:         }
51:         
52: }