public class StorageStep extends Object
Constructor and Description |
---|
StorageStep(World world) |
Modifier and Type | Method and Description |
---|---|
void |
a_file_named(String fileName)
define a sip
|
void |
list_srategy(cucumber.api.DataTable dataTable) |
void |
save_this_file(String strategy) |
boolean |
store(Path sip,
String uri,
String strategy,
String guid)
Store a file
|
void |
the_sip_is_stored_in_offers(cucumber.api.DataTable dataTable)
Check that the file is stored in the offers
|
public StorageStep(World world) throws FileNotFoundException, InvalidParseOperationException
@Given(value="^un fichier nomm\u00e9 (.*)$") public void a_file_named(String fileName)
fileName
- name of a sip@When(value="^je sauvegarde le fichier dans la strategie (.*)") public void save_this_file(String strategy) throws IOException
IOException
@Then(value="^le fichier est bien stock\u00e9 dans les strategies suivantes") public void the_sip_is_stored_in_offers(cucumber.api.DataTable dataTable) throws StorageException
dataTable
- the datatableStorageException
- une exeption@Then(value="^je verifie que toutes ces strategies contiennent des fichiers") public void list_srategy(cucumber.api.DataTable dataTable) throws StorageException, StorageServerClientException
public boolean store(Path sip, String uri, String strategy, String guid) throws StorageServerClientException, StorageNotFoundClientException, StorageAlreadyExistsClientException, ContentAddressableStorageServerException, ContentAddressableStorageAlreadyExistException, ContentAddressableStorageNotFoundException, IOException
sip
- uri
- guid
- StorageServerClientException
StorageNotFoundClientException
StorageAlreadyExistsClientException
ContentAddressableStorageServerException
ContentAddressableStorageAlreadyExistException
ContentAddressableStorageNotFoundException
IOException
Copyright © 2018 Vitam. All rights reserved.