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

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

29 Apr 2025 01:00PM UTC coverage: 86.311%. First build
#378

Pull #233

github

web-flow
Merge pull request #253 from kit-data-manager/fix-renaming-of-data-set-entities

Fix renaming of data set entities
Pull Request #233: Version 2.1.0

598 of 763 new or added lines in 29 files covered. (78.37%)

1879 of 2177 relevant lines covered (86.31%)

0.86 hits per line

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

79.17
/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

NEW
77
    public static class Dataset {
×
78

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

83
        public String getId() {
NEW
84
            return id;
×
85
        }
86

87
        public String getName() {
NEW
88
            return name;
×
89
        }
90

91
        public String getDescription() {
NEW
92
            return description;
×
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