BAEL-2569 update test
This commit is contained in:
parent
bbb98f7a91
commit
a0227300bf
@ -1,8 +1,7 @@
|
||||
package com.baeldung.environmentpostprocessor;
|
||||
|
||||
import static org.junit.Assert.assertTrue;
|
||||
import static org.junit.Assert.assertEquals;
|
||||
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
@ -18,12 +17,10 @@ public class PriceCalculationEnvironmentPostProcessorLiveTest {
|
||||
@Autowired
|
||||
PriceCalculationService pcService;
|
||||
|
||||
|
||||
@Test
|
||||
public void WhenSetGrossEnvironmentVariable_ThenTaxApplied() {
|
||||
public void whenSetNetEnvironmentVariablebyDefault_thenNoTaxApplied() {
|
||||
double total = pcService.productTotalPrice(100, 4);
|
||||
|
||||
Assert.assertEquals(400.0,total);
|
||||
assertEquals(400.0, total, 0);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user