Skip to content

Package: OWLClassR

OWLClassR

nameinstructionbranchcomplexitylinemethod
OWLClassR()
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%
equals(Object)
M: 43 C: 0
0%
M: 6 C: 0
0%
M: 4 C: 0
0%
M: 6 C: 0
0%
M: 1 C: 0
0%
getName()
M: 13 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getPersistenceContext()
M: 3 C: 7
70%
M: 1 C: 1
50%
M: 1 C: 1
50%
M: 0 C: 1
100%
M: 0 C: 1
100%
getUri()
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%
hashCode()
M: 0 C: 14
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
setName(String)
M: 18 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
setPersistenceContext(UnitOfWorkImpl)
M: 0 C: 11
100%
M: 0 C: 2
100%
M: 0 C: 2
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
setUri(URI)
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
static {...}
M: 0 C: 2
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
toString()
M: 28 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 4 C: 0
0%
M: 1 C: 0
0%

Coverage

1:•/**
2: * Copyright (C) 2022 Czech Technical University in Prague
3: *
4: * This program is free software: you can redistribute it and/or modify it under
5: * the terms of the GNU General Public License as published by the Free Software
6: * Foundation, either version 3 of the License, or (at your option) any
7: * later version.
8: *
9: * This program is distributed in the hope that it will be useful, but WITHOUT
10: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11: * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
12: * details. You should have received a copy of the GNU General Public License
13: * along with this program. If not, see <http://www.gnu.org/licenses/>.
14: */
15: package cz.cvut.kbss.jopa.test;
16:
17: import cz.cvut.kbss.jopa.model.annotations.Id;
18: import cz.cvut.kbss.jopa.model.annotations.OWLAnnotationProperty;
19: import cz.cvut.kbss.jopa.model.annotations.OWLClass;
20: import cz.cvut.kbss.jopa.vocabulary.RDFS;
21:
22: import java.net.URI;
23: import java.util.Objects;
24:
25: @OWLClass(iri = "http://krizik.felk.cvut.cz/ontologies/jopa/entities#OWLClassR")
26: public class OWLClassR {
27:
28: @Id
29: private URI uri;
30:
31: @OWLAnnotationProperty(iri = RDFS.LABEL)
32: private String name;
33:
34: public URI getUri() {
35: return uri;
36: }
37:
38: public void setUri(URI uri) {
39: this.uri = uri;
40: }
41:
42: public String getName() {
43: return name;
44: }
45:
46: public void setName(String name) {
47: this.name = name;
48: }
49:
50: @Override
51: public boolean equals(Object o) {
52:• if (this == o) {
53: return true;
54: }
55:• if (o == null || getClass() != o.getClass()) {
56: return false;
57: }
58:
59: OWLClassR owlClassR = (OWLClassR) o;
60:
61: return Objects.equals(name, owlClassR.name);
62:
63: }
64:
65: @Override
66: public int hashCode() {
67: return Objects.hashCode(name);
68: }
69:
70: @Override
71: public String toString() {
72: return "OWLClassR{" +
73: "uri=" + uri +
74: ", name='" + name + '\'' +
75: '}';
76: }
77: }