From a5eb239dfe3d96ec3bd7199b3151975c24d0d9a8 Mon Sep 17 00:00:00 2001 From: Thomas Papendieck Date: Wed, 28 Nov 2018 17:43:23 +0100 Subject: [PATCH] first test competed, no change in production --- .../de/edu/hsfulda/ciip/tdd/BowlingCalculatorTest.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/TDD-pure-function/src/test/java/de/edu/hsfulda/ciip/tdd/BowlingCalculatorTest.java b/TDD-pure-function/src/test/java/de/edu/hsfulda/ciip/tdd/BowlingCalculatorTest.java index a7e31a3..1fd196a 100644 --- a/TDD-pure-function/src/test/java/de/edu/hsfulda/ciip/tdd/BowlingCalculatorTest.java +++ b/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)); } }