Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import junit.framework.TestCase;
- public class MutationTest extends TestCase {
- public static int f(final int value) {
- return (value <= 10) ? 10 : value;
- }
- public void test() {
- assertEquals(10, f(0));
- assertEquals(10, f(1));
- assertEquals(10, f(9));
- //
- assertEquals(10, f(10));
- //
- assertEquals(11, f(11));
- assertEquals(12, f(12));
- assertEquals(20, f(20));
- assertEquals(99, f(99));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement