• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

kit-data-manager / ro-crate-java / #392

29 Apr 2025 06:44PM UTC coverage: 89.357%. First build
#392

Pull #233

github

Pfeil
fix: add newline at end of gradle.yml for consistency
Pull Request #233: Version 2.1.0

608 of 700 new or added lines in 28 files covered. (86.86%)

1889 of 2114 relevant lines covered (89.36%)

0.89 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

95.83
/src/main/java/edu/kit/datamanager/ro_crate/preview/CustomPreviewModel.java
1
package edu.kit.datamanager.ro_crate.preview;
2

3
import java.util.List;
4

5
/**
6
 *
7
 * @author jejkal
8
 */
9
public class CustomPreviewModel {
1✔
10

11
    protected ROCrate crate;
12
    protected List<Dataset> datasets;
13
    protected List<File> files;
14

15
    public ROCrate getCrate() {
16
        return crate;
1✔
17
    }
18

19
    public List<Dataset> getDatasets() {
20
        return datasets;
1✔
21
    }
22

23
    public List<File> getFiles() {
24
        return files;
1✔
25
    }
26

27
    public static class ROCrate {
1✔
28

29
        protected String name;
30
        protected String description;
31
        protected String type;
32
        protected String license;
33
        protected String datePublished;
34
        protected List<Part> hasPart;
35

36
        public String getName() {
37
            return name;
1✔
38
        }
39

40
        public String getDescription() {
41
            return description;
1✔
42
        }
43

44
        public String getType() {
NEW
45
            return type;
×
46
        }
47

48
        public String getLicense() {
49
            return license;
1✔
50
        }
51

52
        public String getDatePublished() {
53
            return datePublished;
1✔
54
        }
55

56
        public List<Part> getHasPart() {
57
            return hasPart;
1✔
58
        }
59

60
    }
61

62
    public static class Part {
1✔
63

64
        protected String id;
65
        protected String name;
66

67
        public String getId() {
68
            return id;
1✔
69
        }
70

71
        public String getName() {
72
            return name;
1✔
73
        }
74

75
    }
76

77
    public static class Dataset {
1✔
78

79
        protected String id;
80
        protected String name;
81
        protected String description;
82

83
        public String getId() {
84
            return id;
1✔
85
        }
86

87
        public String getName() {
88
            return name;
1✔
89
        }
90

91
        public String getDescription() {
92
            return description;
1✔
93
        }
94

95
    }
96

97
    public static class File {
1✔
98

99
        protected String id;
100
        protected String name;
101
        protected String description;
102
        protected String contentSize;
103
        protected String encodingFormat;
104

105
        public String getId() {
106
            return id;
1✔
107
        }
108

109
        public String getName() {
110
            return name;
1✔
111
        }
112

113
        public String getDescription() {
114
            return description;
1✔
115
        }
116

117
        public String getContentSize() {
118
            return contentSize;
1✔
119
        }
120

121
        public String getEncodingFormat() {
122
            return encodingFormat;
1✔
123
        }
124

125
    }
126
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc