File tree Expand file tree Collapse file tree 7 files changed +21
-14
lines changed
main/java/uk/ac/standrews/cs/population_records
test/java/uk/ac/standrews/cs/population_records Expand file tree Collapse file tree 7 files changed +21
-14
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ This project provides some Java utility classes for manipulating population reco
1010<dependency>
1111 <groupId>uk.ac.standrews.cs</groupId>
1212 <artifactId>population-records</artifactId>
13- <version>1.0-SNAPSHOT</version>
13+ <version>1.0.2 -SNAPSHOT</version>
1414</dependency>
1515...
1616<repository>
Original file line number Diff line number Diff line change 2727 </parent >
2828
2929 <artifactId >population-records</artifactId >
30- <version >1.0.1 -SNAPSHOT</version >
30+ <version >1.0.2 -SNAPSHOT</version >
3131 <packaging >jar</packaging >
3232 <name >population-records</name >
3333
3939 <dependency >
4040 <groupId >uk.ac.standrews.cs</groupId >
4141 <artifactId >neo-storr</artifactId >
42- <version >1.0-SNAPSHOT</version >
42+ <version >1.0.1 -SNAPSHOT</version >
4343 </dependency >
4444
4545 <dependency >
4646 <groupId >uk.ac.standrews.cs</groupId >
4747 <artifactId >ciesvium</artifactId >
48- <version >1.1.0-SNAPSHOT</version >
48+ <version >1.1.1-SNAPSHOT</version >
49+ </dependency >
50+
51+ <dependency >
52+ <groupId >org.junit.jupiter</groupId >
53+ <artifactId >junit-jupiter</artifactId >
54+ <version >5.10.2</version > <!-- Use the latest version -->
55+ <scope >test</scope >
4956 </dependency >
5057
5158 </dependencies >
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ private <T extends LXP> Iterable<T> getRecords(IBucket<T> bucket) {
131131
132132 return () -> new Iterator <>() {
133133
134- final List <Long > object_ids = bucket .getObjectIds ();
134+ final List <String > object_ids = bucket .getObjectIds ();
135135 final int bucket_size = object_ids .size ();
136136 int next_index = 0 ;
137137
Original file line number Diff line number Diff line change 2929import java .util .List ;
3030import java .util .Map ;
3131
32- @ SuppressWarnings ({ "unused" , " WeakerAccess"} )
32+ @ SuppressWarnings (" WeakerAccess" )
3333public class Birth extends StaticLXP {
3434
3535 public static final String ROLE_BABY = "ROLE_BABY" ;
@@ -53,7 +53,7 @@ public Birth() {
5353 super ();
5454 }
5555
56- public Birth (long persistent_object_id , Map properties , IBucket bucket ) throws PersistentObjectException {
56+ public Birth (String persistent_object_id , Map properties , IBucket bucket ) throws PersistentObjectException {
5757
5858 super (persistent_object_id , properties , bucket );
5959 }
Original file line number Diff line number Diff line change 2929import java .util .List ;
3030import java .util .Map ;
3131
32- @ SuppressWarnings ({ "unused" , " WeakerAccess"} )
32+ @ SuppressWarnings (" WeakerAccess" )
3333public class Death extends StaticLXP {
3434
3535 public static final String ROLE_DECEASED = "ROLE_DECEASED" ;
@@ -57,7 +57,7 @@ public Death() {
5757 super ();
5858 }
5959
60- public Death (long persistent_Object_id , Map properties , IBucket bucket ) throws PersistentObjectException {
60+ public Death (String persistent_Object_id , Map properties , IBucket bucket ) throws PersistentObjectException {
6161
6262 super (persistent_Object_id , properties , bucket );
6363 }
Original file line number Diff line number Diff line change 2929import java .util .List ;
3030import java .util .Map ;
3131
32- @ SuppressWarnings ({ "WeakerAccess" , "unused" } )
32+ @ SuppressWarnings ("WeakerAccess" )
3333public class Marriage extends StaticLXP {
3434
3535 public static final String ROLE_BRIDE = "ROLE_BRIDE" ;
@@ -60,8 +60,8 @@ public Marriage() {
6060 super ();
6161 }
6262
63- public Marriage (long persistent_object_id , Map properties , IBucket bucket ) throws PersistentObjectException {
64-
63+ public Marriage (String persistent_object_id , Map properties , IBucket bucket ) throws PersistentObjectException {
64+
6565 super (persistent_object_id , properties , bucket );
6666 }
6767
Original file line number Diff line number Diff line change 1616 */
1717package uk .ac .standrews .cs .population_records ;
1818
19- import org .junit .Test ;
19+ import org .junit .jupiter . api . Test ;
2020
21- import static junit .framework . TestCase .assertEquals ;
21+ import static org . junit .jupiter . api . Assertions .assertEquals ;
2222
2323public class NormalisationTest {
2424
You can’t perform that action at this time.
0 commit comments