[BAEL-4930] Update method names in step definition
This commit is contained in:
		
							parent
							
								
									81a216ce06
								
							
						
					
					
						commit
						726f7cbb81
					
				| @ -12,17 +12,17 @@ public class StepDefinitions { | |||||||
|     private Account account; |     private Account account; | ||||||
| 
 | 
 | ||||||
|     @Given("account balance is {double}") |     @Given("account balance is {double}") | ||||||
|     public void account_balance_is(Double initialBalance) { |     public void givenAccountBalance(Double initialBalance) { | ||||||
|         account = new Account(initialBalance); |         account = new Account(initialBalance); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     @When("the account is credited with {double}") |     @When("the account is credited with {double}") | ||||||
|     public void the_account_is_credited_with(Double amount) { |     public void whenAccountIsCredited(Double amount) { | ||||||
|         account.credit(amount); |         account.credit(amount); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     @Then("account should have a balance of {double}") |     @Then("account should have a balance of {double}") | ||||||
|     public void account_should_have_a_balance_of(Double expectedBalance) { |     public void thenAccountShouldHaveBalance(Double expectedBalance) { | ||||||
|         assertEquals(expectedBalance, account.getBalance()); |         assertEquals(expectedBalance, account.getBalance()); | ||||||
|     } |     } | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user