Class LogbookStep
- java.lang.Object
-
- fr.gouv.vitam.functionaltest.cucumber.step.LogbookStep
-
public class LogbookStep extends java.lang.Object
step defining logbook behaviors
-
-
Constructor Summary
Constructors Constructor Description LogbookStep(World world)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
download_logbook_lifecycle_object_for_unit(java.lang.String unitTitle)
void
download_logbook_lifecycle_unit(java.lang.String unitTitle)
void
download_logbook_operation()
void
the_final_logbook_event_has_message(java.lang.String field, java.lang.String message)
void
the_logbook_has_not_the_status(java.lang.String status)
Check if logbook does not contains given statusvoid
the_logbook_operation_has_a_status(java.lang.String status)
check on logbook if the global status is OK (status of the last event, if last event is correct)void
the_logbook_operation_is_consistent()
Check logbook operation consistency : no double evId, same evProcType, evId = evProcId for master, max status level is in the last eventvoid
the_outcome_detail_is(java.lang.String eventName, java.lang.String eventOutDetail)
void
the_results_are(java.lang.String eventName, java.lang.String eventResults)
check if the outcome detail is valid for an event type according to logbookvoid
the_status_are(java.util.List<java.lang.String> eventNames, java.lang.String eventStatus)
check if the status is valid for a list of event type according to logbook
-
-
-
Constructor Detail
-
LogbookStep
public LogbookStep(World world)
-
-
Method Detail
-
download_logbook_operation
@When("^je recherche le journal des op\u00e9rations") public void download_logbook_operation()
-
download_logbook_lifecycle_unit
@When("^je recherche le JCV de l\'unit\u00e9 archivistique dont le titre est (.*)") public void download_logbook_lifecycle_unit(java.lang.String unitTitle)
-
download_logbook_lifecycle_object_for_unit
@When("^je recherche le JCV du groupe d\'objet de l\'unit\u00e9 archivistique dont le titre est (.*)") public void download_logbook_lifecycle_object_for_unit(java.lang.String unitTitle)
-
the_logbook_operation_has_a_status
@Then("^le statut final du journal des op\u00e9rations est (.*)$") public void the_logbook_operation_has_a_status(java.lang.String status) throws VitamClientException
check on logbook if the global status is OK (status of the last event, if last event is correct)- Parameters:
status
- expected status- Throws:
VitamClientException
- VitamClientException
-
the_final_logbook_event_has_message
@Then("^le champ \'(.*)\' de l\'\u00e9venement final est : (.*)$") public void the_final_logbook_event_has_message(java.lang.String field, java.lang.String message) throws VitamClientException, InvalidParseOperationException
-
the_logbook_operation_is_consistent
@Then("^le journal des op\u00e9rations est coh\u00e9rent$") public void the_logbook_operation_is_consistent() throws VitamClientException
Check logbook operation consistency : no double evId, same evProcType, evId = evProcId for master, max status level is in the last event- Throws:
VitamClientException
-
the_logbook_has_not_the_status
@Then("^le journal ne contient pas de statut (.*)$") public void the_logbook_has_not_the_status(java.lang.String status) throws VitamClientException
Check if logbook does not contains given status- Parameters:
status
- forbidden status- Throws:
VitamClientException
- VitamClientException
-
the_outcome_detail_is
@Then("^l\'outcome d\u00e9tail de l\'\u00e9v\u00e9nement (.*) est (.*)$") public void the_outcome_detail_is(java.lang.String eventName, java.lang.String eventOutDetail) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
the_status_are
@Then("^le[s]? statut[s]? (?:de l\'\u00e9v\u00e9nement|des \u00e9v\u00e9nements) (.*) (?:est|sont) (.*)$") public void the_status_are(java.util.List<java.lang.String> eventNames, java.lang.String eventStatus) throws VitamClientException, InvalidParseOperationException
check if the status is valid for a list of event type according to logbook- Parameters:
eventNames
- list of eventeventStatus
- status of event- Throws:
VitamClientException
InvalidParseOperationException
-
the_results_are
@Then("^le r\u00e9sultat de l\'\u00e9v\u00e9nement (.*) est (.*)$") public void the_results_are(java.lang.String eventName, java.lang.String eventResults) throws VitamClientException, InvalidParseOperationException
check if the outcome detail is valid for an event type according to logbook- Parameters:
eventName
- the eventeventResults
- outcome detail of the event- Throws:
VitamClientException
InvalidParseOperationException
-
-