fixed failed test

(cherry picked from commit 6989cb6f15)
This commit is contained in:
Sascha Szott
2024-05-16 16:41:31 +02:00
committed by github-actions[bot]
parent 2b1270197e
commit 8e56fdd95b

View File

@@ -96,7 +96,7 @@ public class ScopusImportMetadataSourceServiceIT extends AbstractLiveImportInteg
}
@Test
public void scopusImportMetadataGetRecordsEmptyResponceTest() throws Exception {
public void scopusImportMetadataGetRecordsEmptyResponseTest() throws Exception {
context.turnOffAuthorisationSystem();
String originApiKey = scopusServiceImpl.getApiKey();
if (StringUtils.isBlank(originApiKey)) {
@@ -113,8 +113,7 @@ public class ScopusImportMetadataSourceServiceIT extends AbstractLiveImportInteg
context.restoreAuthSystemState();
Collection<ImportRecord> recordsImported = scopusServiceImpl.getRecords("roma", 0, 20);
ImportRecord importedRecord = recordsImported.iterator().next();
assertTrue(importedRecord.getValueList().isEmpty());
assertTrue(recordsImported.isEmpty());
} finally {
liveImportClientImpl.setHttpClient(originalHttpClient);
scopusServiceImpl.setApiKey(originApiKey);
@@ -229,4 +228,4 @@ public class ScopusImportMetadataSourceServiceIT extends AbstractLiveImportInteg
return records;
}
}
}