Browse Source

first test competed, no change in production

master
Thomas Papendieck 5 years ago
parent
commit
a5eb239dfe
  1. 7
      TDD-pure-function/src/test/java/de/edu/hsfulda/ciip/tdd/BowlingCalculatorTest.java

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

@ -2,6 +2,7 @@ package de.edu.hsfulda.ciip.tdd;
import static org.junit.Assert.*;
import org.hamcrest.CoreMatchers;
import org.junit.Test;
public class BowlingCalculatorTest {
@ -12,10 +13,12 @@ public class BowlingCalculatorTest {
String listOfThrows = "-- -- -- -- -- -- -- -- -- --";
int expectedValue = 0;
BownlingCalculator bownlingCalculator = new BownlingCalculator();
// act
int calculatedResult = bownlingCalculator.evaluate(listOfThrows);
// assert
assertThat("calculated value", calculatedResult, CoreMatchers.equalTo(expectedValue));
}
}
Loading…
Cancel
Save