private Collection<String> getParameterIds( String layerName, Optional<Collection<String>> parameterIds) { return parameterIds.orElseGet( () -> { try { return sb.getCachedParameterIds(layerName); } catch (StorageException e) { log.error( "Error while retreiving cached parameter IDs for layer " + layerName, e); return Collections.emptySet(); } }); }
EasyMock.expect(storageBroker.getCachedParameterIds(EasyMock.capture(layerNameCap))) .andStubAnswer( () ->
EasyMock.expect(storageBroker.getCachedParameterIds(EasyMock.capture(layerNameCap))) .andStubAnswer( () ->