Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ut2 pull #4

Open
wants to merge 9 commits into
base: ut2
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion code-coverage-jacoco/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.5.201505241946</version>
<version>0.8.2</version>
<executions>
<!--
Prepares the property pointing to the JaCoCo runtime agent which
Expand Down
5 changes: 3 additions & 2 deletions code-coverage-jacoco/src/test/java/FizzBuzzTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
* @author Petri Kainulainen
*/
public class FizzBuzzTest {

private FizzBuzz fizzBuzz;
private FizzBuzz fizzBuzz;

@Before
public void setUp() {
Expand All @@ -22,6 +21,7 @@ public void getFizzBuzzWord_NumberIsMultipleOfThree_ShouldReturnFizz() {
assertThat(fizzBuzz.getFizzBuzzWord(3), is("Fizz"));
}


@Test
public void getFizzBuzzWord_NumberIsMultipleOfFive_ShouldReturnBuzz() {
assertThat(fizzBuzz.getFizzBuzzWord(5), is("Buzz"));
Expand All @@ -37,4 +37,5 @@ public void getFizzBuzzWord_NumberIsNotMultipleOfThreeOrFive_ShouldReturnNull()
assertNull(fizzBuzz.getFizzBuzzWord(4));
}


}