@@ -151,7 +151,7 @@ public void testAddFieldsByType_createDv_dvHasOwner() {
151151 when (owner .getDisplayName ()).thenReturn ("Parent Dataverse" );
152152
153153 when (dataverseService .find (1L )).thenReturn (dataverse );
154- when (systemConfig .getGuidesBaseUrl ()).thenReturn ("http://guides.dataverse.org" );
154+ when (systemConfig .getGuidesBaseUrl (false )).thenReturn ("http://guides.dataverse.org" );
155155 when (systemConfig .getGuidesVersion ()).thenReturn ("v1.0" );
156156
157157 sut .addFieldsByType (notificationJson , authenticatedUser , userNotification );
@@ -177,7 +177,7 @@ public void testAddFieldsByType_createDv_dvHasNoOwner() {
177177 when (dataverse .getOwner ()).thenReturn (null );
178178
179179 when (dataverseService .find (1L )).thenReturn (dataverse );
180- when (systemConfig .getGuidesBaseUrl ()).thenReturn ("http://guides.dataverse.org" );
180+ when (systemConfig .getGuidesBaseUrl (false )).thenReturn ("http://guides.dataverse.org" );
181181 when (systemConfig .getGuidesVersion ()).thenReturn ("v1.0" );
182182
183183 sut .addFieldsByType (notificationJson , authenticatedUser , userNotification );
@@ -195,7 +195,7 @@ public void testAddFieldsByType_createDv_objectDeleted() {
195195 userNotification .setObjectId (1L );
196196
197197 when (dataverseService .find (1L )).thenReturn (null );
198- when (systemConfig .getGuidesBaseUrl ()).thenReturn ("http://guides.dataverse.org" );
198+ when (systemConfig .getGuidesBaseUrl (false )).thenReturn ("http://guides.dataverse.org" );
199199 when (systemConfig .getGuidesVersion ()).thenReturn ("v1.0" );
200200
201201 sut .addFieldsByType (notificationJson , authenticatedUser , userNotification );
@@ -279,7 +279,7 @@ public void testAddFieldsByType_createDs() {
279279
280280 when (datasetVersionService .find (1L )).thenReturn (datasetVersion );
281281
282- when (systemConfig .getGuidesBaseUrl ()).thenReturn ("http://guides.dataverse.org" );
282+ when (systemConfig .getGuidesBaseUrl (false )).thenReturn ("http://guides.dataverse.org" );
283283 when (systemConfig .getGuidesVersion ()).thenReturn ("v1.0" );
284284
285285 sut .addFieldsByType (notificationJson , authenticatedUser , userNotification );
@@ -407,7 +407,7 @@ public void testAddFieldsByType_createAcc() {
407407 when (dataverseService .findRootDataverse ()).thenReturn (rootDataverse );
408408 when (settingsService .getValueForKey (SettingsServiceBean .Key .InstallationName )).thenReturn ("InstallationName" );
409409
410- when (systemConfig .getGuidesBaseUrl ()).thenReturn ("http://guides.dataverse.org" );
410+ when (systemConfig .getGuidesBaseUrl (false )).thenReturn ("http://guides.dataverse.org" );
411411 when (systemConfig .getGuidesVersion ()).thenReturn ("v1.0" );
412412
413413 sut .addFieldsByType (notificationJson , authenticatedUser , userNotification );
@@ -436,7 +436,7 @@ public void testAddFieldsByType_ingestCompleted() {
436436
437437 when (datasetService .find (1L )).thenReturn (dataset );
438438
439- when (systemConfig .getGuidesBaseUrl ()).thenReturn ("http://guides.dataverse.org" );
439+ when (systemConfig .getGuidesBaseUrl (false )).thenReturn ("http://guides.dataverse.org" );
440440 when (systemConfig .getGuidesVersion ()).thenReturn ("v1.0" );
441441
442442 sut .addFieldsByType (notificationJson , authenticatedUser , userNotification );
@@ -457,7 +457,7 @@ public void testAddFieldsByType_ingestCompleted_objectDeleted() {
457457
458458 when (datasetService .find (1L )).thenReturn (null );
459459
460- when (systemConfig .getGuidesBaseUrl ()).thenReturn ("http://guides.dataverse.org" );
460+ when (systemConfig .getGuidesBaseUrl (false )).thenReturn ("http://guides.dataverse.org" );
461461 when (systemConfig .getGuidesVersion ()).thenReturn ("v1.0" );
462462
463463 sut .addFieldsByType (notificationJson , authenticatedUser , userNotification );
0 commit comments