@Test public void configurationOkTest() { FileDriverMapper fileDriverMapper = null; try { fileDriverMapper = FileDriverMapper.getInstance(); } catch (final VitamException exc) { fail("should not raise an exception !"); } assertNotNull(fileDriverMapper); }
public static FileDriverMapper getInstance() throws StorageDriverMapperException { if (configuration == null) { throw new StorageDriverMapperException(VitamCodeHelper.getLogMessage(VitamCode.STORAGE_DRIVER_MAPPING_INITIALIZE)); } return INSTANCE; }
FileDriverMapper implements DriverMapper { public static FileDriverMapper getInstance() throws StorageDriverMapperException { if (configuration == null) { throw new StorageDriverMapperException(VitamCodeHelper.getLogMessage(VitamCode.STORAGE_DRIVER_MAPPING_INITIALIZE)); } return INSTANCE; } }
FileDriverMapper implements DriverMapper { public static FileDriverMapper getInstance() throws StorageDriverMapperException { if (configuration == null) { throw new StorageDriverMapperException(VitamCodeHelper.getLogMessage(VitamCode.STORAGE_DRIVER_MAPPING_INITIALIZE)); } return INSTANCE; } private  FileDriverMapper(); }
FileDriverMapper implements DriverMapper { public static FileDriverMapper getInstance() throws StorageDriverMapperException { if (configuration == null) { throw new StorageDriverMapperException(VitamCodeHelper.getLogMessage(VitamCode.STORAGE_DRIVER_MAPPING_INITIALIZE)); } return INSTANCE; } private  FileDriverMapper(); static FileDriverMapper getInstance(); @Override List<String> getOffersFor(String driverName); @Override void addOfferTo(String offerId, String driverName); @Override void addOffersTo(List<String> offersIdsToAdd, String driverName); @Override void removeOfferTo(String offerId, String driverName); @Override void removeOffersTo(List<String> offersIdsToRemove, String driverName); }
FileDriverMapper implements DriverMapper { public static FileDriverMapper getInstance() throws StorageDriverMapperException { if (configuration == null) { throw new StorageDriverMapperException(VitamCodeHelper.getLogMessage(VitamCode.STORAGE_DRIVER_MAPPING_INITIALIZE)); } return INSTANCE; } private  FileDriverMapper(); static FileDriverMapper getInstance(); @Override List<String> getOffersFor(String driverName); @Override void addOfferTo(String offerId, String driverName); @Override void addOffersTo(List<String> offersIdsToAdd, String driverName); @Override void removeOfferTo(String offerId, String driverName); @Override void removeOffersTo(List<String> offersIdsToRemove, String driverName);  }