mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
2b1270197e
commit
8e56fdd95b
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user