Class StorageStep
- java.lang.Object
-
- fr.gouv.vitam.functionaltest.cucumber.step.StorageStep
-
public class StorageStep extends java.lang.Object
Storage step
-
-
Constructor Summary
Constructors Constructor Description StorageStep(World world)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
a_file_named(java.lang.String fileName)
define a sipvoid
list_srategy(cucumber.api.DataTable dataTable)
void
save_this_file(java.lang.String strategy)
boolean
store(java.nio.file.Path sip, java.lang.String uri, java.lang.String strategy, java.lang.String guid)
Store a filevoid
the_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.FileNotFoundException
InvalidParseOperationException
-
-
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 StorageException
Check 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.IOException
Store a file- Parameters:
sip
-uri
-guid
-- Returns:
- true
- Throws:
StorageServerClientException
StorageNotFoundClientException
StorageAlreadyExistsClientException
ContentAddressableStorageServerException
ContentAddressableStorageAlreadyExistException
ContentAddressableStorageNotFoundException
java.io.IOException
-
-