@Test(expected = StorageException.class) public void testGetStorageOffer_ForceIoException() throws Exception { final File offer = PropertiesUtils.findFile("static-offer.json"); assertNotNull(offer); offer.setReadable(false); final FileStorageProvider fsProvider = new FileStorageProvider(); try { fsProvider.getStorageOffer(null); fail("Expecting storage exception"); } finally { offer.setReadable(true); } }
@Override public StorageOffer getStorageOffer(String idOffer) throws StorageException { return getFilteredStorageOffer(idOffer, false); }
FileStorageProvider implements StorageStrategyProvider, StorageOfferProvider { @Override public StorageOffer getStorageOffer(String idOffer) throws StorageException { return getFilteredStorageOffer(idOffer, false); } }
FileStorageProvider implements StorageStrategyProvider, StorageOfferProvider { @Override public StorageOffer getStorageOffer(String idOffer) throws StorageException { return getFilteredStorageOffer(idOffer, false); } FileStorageProvider(); }
FileStorageProvider implements StorageStrategyProvider, StorageOfferProvider { @Override public StorageOffer getStorageOffer(String idOffer) throws StorageException { return getFilteredStorageOffer(idOffer, false); } FileStorageProvider(); @Override StorageStrategy getStorageStrategy(String idStrategy); @Override StorageOffer getStorageOffer(String idOffer); @Override StorageOffer getStorageOffer(String idOffer, boolean includeDisabled); @Override Map<String, StorageStrategy> getStorageStrategies(); }
FileStorageProvider implements StorageStrategyProvider, StorageOfferProvider { @Override public StorageOffer getStorageOffer(String idOffer) throws StorageException { return getFilteredStorageOffer(idOffer, false); } FileStorageProvider(); @Override StorageStrategy getStorageStrategy(String idStrategy); @Override StorageOffer getStorageOffer(String idOffer); @Override StorageOffer getStorageOffer(String idOffer, boolean includeDisabled); @Override Map<String, StorageStrategy> getStorageStrategies();  }