BAEL-2569 update test

This commit is contained in:
Matt Zhang (EXT) 2019-03-13 11:56:26 +11:00
parent bbb98f7a91
commit a0227300bf

View File

@ -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);
}
}