Skip to content
Snippets Groups Projects
Commit 01ac62c9 authored by Florian Delbe's avatar Florian Delbe
Browse files

ajout test modification ,test au rouge pour modification

parent 7787814d
No related branches found
No related tags found
No related merge requests found
...@@ -24,4 +24,14 @@ public class StockStepsdefs{ ...@@ -24,4 +24,14 @@ public class StockStepsdefs{
assertEquals(stock.getCurrency(), MoneyCurrency.EUR); assertEquals(stock.getCurrency(), MoneyCurrency.EUR);
} }
@When("j'actualise la valeur d'un stock")
public void modifieValeur(){
stock.setValue(6.0);
}
@Then("la nouvelle valeur est enregistré")
public void testValeur(){
assertEquals(stock.getValue(), 6.0);
}
} }
...@@ -8,3 +8,7 @@ Feature:Creation Stock ...@@ -8,3 +8,7 @@ Feature:Creation Stock
Scenario: Créer un stock Scenario: Créer un stock
When je crée une action When je crée une action
Then cette action apparait et a les infos que je lui ait donné a la création Then cette action apparait et a les infos que je lui ait donné a la création
Scenario: modfier la valeur d'un stock
When j'actualise la valeur d'un stock
Then la nouvelle valeur est enregistré
\ No newline at end of file
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment