forked from hcoles/pitest
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
nrainer
committed
Sep 3, 2018
1 parent
0982044
commit 29d4753
Showing
4 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
...y/src/test/java/com/example/coverage/execute/samples/mutationMatrix/SimpleCalculator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package com.example.coverage.execute.samples.mutationMatrix; | ||
|
||
public class SimpleCalculator { | ||
|
||
public static int sum(int x, int y) { | ||
return x + y; | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
...st/java/com/example/coverage/execute/samples/mutationMatrix/TestsForSimpleCalculator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.example.coverage.execute.samples.mutationMatrix; | ||
|
||
import static org.junit.Assert.assertEquals; | ||
|
||
import org.junit.Test; | ||
|
||
public class TestsForSimpleCalculator { | ||
|
||
@Test | ||
public void testSum() { | ||
assertEquals(3, SimpleCalculator.sum(2, 1)); | ||
} | ||
|
||
@Test | ||
public void testSumWithNegativeNumber() { | ||
assertEquals(1, SimpleCalculator.sum(4, -3)); | ||
} | ||
|
||
@Test | ||
public void pseudoTestSum() { | ||
SimpleCalculator.sum(2, 1); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters