Class StorageStep
- java.lang.Object
-
- fr.gouv.vitam.functionaltest.cucumber.step.StorageStep
-
public class StorageStep extends java.lang.ObjectStorage step
-
-
Constructor Summary
Constructors Constructor Description StorageStep(World world)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voida_file_named(java.lang.String fileName)define a sipvoidlist_srategy(cucumber.api.DataTable dataTable)voidsave_this_file(java.lang.String strategy)booleanstore(java.nio.file.Path sip, java.lang.String uri, java.lang.String strategy, java.lang.String guid)Store a filevoidthe_sip_is_stored_in_offers(cucumber.api.DataTable dataTable)Check that the file is stored in the offers
-
-
-
Constructor Detail
-
StorageStep
public StorageStep(World world) throws java.io.FileNotFoundException, InvalidParseOperationException
- Throws:
java.io.FileNotFoundExceptionInvalidParseOperationException
-
-
Method Detail
-
a_file_named
@Given("^un fichier nomm\u00e9 (.*)$") public void a_file_named(java.lang.String fileName)define a sip- Parameters:
fileName- name of a sip
-
save_this_file
@When("^je sauvegarde le fichier dans la strategie (.*)") public void save_this_file(java.lang.String strategy) throws java.io.IOException- Throws:
java.io.IOException
-
the_sip_is_stored_in_offers
@Then("^le fichier est bien stock\u00e9 dans les strategies suivantes") public void the_sip_is_stored_in_offers(cucumber.api.DataTable dataTable) throws StorageExceptionCheck that the file is stored in the offers- Parameters:
dataTable- the datatable- Throws:
StorageException- une exeption
-
list_srategy
@Then("^je verifie que toutes ces strategies contiennent des fichiers") public void list_srategy(cucumber.api.DataTable dataTable) throws StorageException, StorageServerClientException
-
store
public boolean store(java.nio.file.Path sip, java.lang.String uri, java.lang.String strategy, java.lang.String guid) throws StorageServerClientException, StorageNotFoundClientException, StorageAlreadyExistsClientException, ContentAddressableStorageServerException, ContentAddressableStorageAlreadyExistException, ContentAddressableStorageNotFoundException, java.io.IOExceptionStore a file- Parameters:
sip-uri-guid-- Returns:
- true
- Throws:
StorageServerClientExceptionStorageNotFoundClientExceptionStorageAlreadyExistsClientExceptionContentAddressableStorageServerExceptionContentAddressableStorageAlreadyExistExceptionContentAddressableStorageNotFoundExceptionjava.io.IOException
-
-