From c6a6e3faaa1f8fe3fd598783f1732fdb62eeb67e Mon Sep 17 00:00:00 2001 From: eeganlf <101604439+eeganlf@users.noreply.github.com> Date: Mon, 14 Nov 2022 19:00:38 -0800 Subject: [PATCH] Added test to UT1 Signed-off-by: eeganlf <101604439+eeganlf@users.noreply.github.com> --- code-coverage-jacoco/src/test/java/FizzBuzzTest.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/code-coverage-jacoco/src/test/java/FizzBuzzTest.java b/code-coverage-jacoco/src/test/java/FizzBuzzTest.java index 9aa2dee..3332cf7 100644 --- a/code-coverage-jacoco/src/test/java/FizzBuzzTest.java +++ b/code-coverage-jacoco/src/test/java/FizzBuzzTest.java @@ -9,6 +9,16 @@ * @author Petri Kainulainen */ public class FizzBuzzTest { +private FizzBuzz fizzBuzz; + @Before + public void setUp() { + fizzBuzz = new FizzBuzz(); + } + + @Test + public void getFizzBuzzWord_NumberIsMultipleOfThree_ShouldReturnFizz() { + assertThat(fizzBuzz.getFizzBuzzWord(3), is("Fizz")); + } }