Browse Source

Delete TestBmi.java

new_repo
Daniel Hauch 6 years ago
committed by GitHub
parent
commit
06ca0684c6
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 29
      src/TestBmi.java

29
src/TestBmi.java

@ -1,29 +0,0 @@
import org.junit.Before;
import org.junit.jupiter.api.Test;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.IsEqual.equalTo;
public class TestBmi {
private Bmi bmi;
@Before
public void setup() {
bmi = new Bmi();
}
@Test
public void normalBmi() {
//arrange
Bmi bmi = new Bmi();
float height = (float) 1.70;
float weight = 70;
int expectedResult = 24;
//act
int bmiResult = bmi.calculate(height, weight);
//assert
assertThat("", bmiResult, equalTo(expectedResult));
}
}
Loading…
Cancel
Save