Browse Source

next failing test

how_to_use_Mockito
Thomas Papendieck 6 years ago
parent
commit
874ad69814
  1. 13
      TDD-pure-function/src/test/java/de/edu/hsfulda/ciip/tdd/BowlingCalculatorTest.java

13
TDD-pure-function/src/test/java/de/edu/hsfulda/ciip/tdd/BowlingCalculatorTest.java

@ -21,4 +21,17 @@ public class BowlingCalculatorTest {
assertThat("calculated value", calculatedResult, CoreMatchers.equalTo(expectedValue));
}
@Test
public void createsSumOfAllIncompleteFrames() {
// arrange
String listOfThrows = "11 22 33 44 54 63 72 81 -9 --";
int expectedValue = 65;
BownlingCalculator bownlingCalculator = new BownlingCalculator();
// act
int calculatedResult = bownlingCalculator.evaluate(listOfThrows);
// assert
assertThat("calculated value", calculatedResult, CoreMatchers.equalTo(expectedValue));
}
}
Loading…
Cancel
Save