@@ -40,8 +40,8 @@ private JsonObject makeMetadata(String location) {
4040 return metadata ;
4141 }
4242
43- private Service addService (JsonArray content , int serviceId , int siteId , String name , Set <Role > roles ) {
44- Service service = new Service (serviceId , siteId , name , roles );
43+ private Service addService (JsonArray content , int serviceId , int siteId , String name , Set <Role > roles , String linkIdRegex ) {
44+ Service service = new Service (serviceId , siteId , name , roles , linkIdRegex );
4545 JsonObject jo = JsonObject .mapFrom (service );
4646 content .add (jo );
4747 return service ;
@@ -59,10 +59,10 @@ public void loadContentEmptyArray() throws Exception {
5959 @ Test
6060 public void loadContentMultipleServices () throws Exception {
6161 JsonArray content = new JsonArray ();
62- Service s1 = addService (content , 1 , 123 , "Test Service 1" , Set .of ());
63- Service s2 = addService (content , 2 , 123 , "test1" , Set .of (Role .GENERATOR ));
64- Service s3 = addService (content , 3 , 124 , "Test Service 1" , Set .of (Role .GENERATOR , Role .SHARING_PORTAL ));
65- Service s4 = addService (content , 4 , 125 , "test2" , Set .of (Role .MAINTAINER ));
62+ Service s1 = addService (content , 1 , 123 , "Test Service 1" , Set .of (), null );
63+ Service s2 = addService (content , 2 , 123 , "test1" , Set .of (Role .GENERATOR ), "regexA" );
64+ Service s3 = addService (content , 3 , 124 , "Test Service 1" , Set .of (Role .GENERATOR , Role .SHARING_PORTAL ), null );
65+ Service s4 = addService (content , 4 , 125 , "test2" , Set .of (Role .MAINTAINER ), "regexB" );
6666 when (cloudStorage .download ("locationPath" )).thenReturn (makeInputStream (content ));
6767
6868 final long count = serviceStore .loadContent (makeMetadata ("locationPath" ));
0 commit comments