Skip to content

Package: OWLClassWithUrn

OWLClassWithUrn

nameinstructionbranchcomplexitylinemethod
OWLClassWithUrn()
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%
getCreated()
M: 0 C: 13
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getLabel()
M: 0 C: 13
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getPersistenceContext()
M: 0 C: 10
100%
M: 0 C: 2
100%
M: 0 C: 2
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getUri()
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%
setCreated(LocalDate)
M: 0 C: 18
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 2
100%
M: 0 C: 1
100%
setLabel(String)
M: 0 C: 18
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 2
100%
M: 0 C: 1
100%
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: 0 C: 4
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 2
100%
M: 0 C: 1
100%
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: 43 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 5 C: 0
0%
M: 1 C: 0
0%

Coverage

1:•package cz.cvut.kbss.jopa.test;
2:
3: import cz.cvut.kbss.jopa.model.annotations.Id;
4: import cz.cvut.kbss.jopa.model.annotations.OWLClass;
5: import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty;
6:
7: import java.net.URI;
8: import java.time.LocalDate;
9:
10: @OWLClass(iri = "urn:jopa:model:class-with-urn")
11: public class OWLClassWithUrn implements HasUri {
12:
13: @Id
14: private URI uri;
15:
16: @OWLDataProperty(iri = "urn:jopa:model:label")
17: private String label;
18:
19: @OWLDataProperty(iri = "urn:jopa:model:created")
20: private LocalDate created;
21:
22: @Override
23: public URI getUri() {
24: return uri;
25: }
26:
27: public void setUri(URI uri) {
28: this.uri = uri;
29: }
30:
31: public String getLabel() {
32: return label;
33: }
34:
35: public void setLabel(String label) {
36: this.label = label;
37: }
38:
39: public LocalDate getCreated() {
40: return created;
41: }
42:
43: public void setCreated(LocalDate created) {
44: this.created = created;
45: }
46:
47: @Override
48: public String toString() {
49: return "OWLClassWithUrn{" +
50: "uri=" + uri +
51: ", label='" + label + '\'' +
52: ", created=" + created +
53: '}';
54: }
55: }