diff --git a/src/main/java/soen/tutorial/ArithmeticOperation.java b/src/main/java/soen/tutorial/ArithmeticOperation.java index 680cf23..0ec9176 100644 --- a/src/main/java/soen/tutorial/ArithmeticOperation.java +++ b/src/main/java/soen/tutorial/ArithmeticOperation.java @@ -2,8 +2,7 @@ public class ArithmeticOperation { - public Integer addOrSub(Integer a, Integer b) - { + public Integer addOrSub(Integer a, Integer b) { if (a > b) { return a - b; } else { diff --git a/src/test/java/soen/tutorial/ArithmeticOperationTest.java b/src/test/java/soen/tutorial/ArithmeticOperationTest.java index 590602b..5e87ecb 100644 --- a/src/test/java/soen/tutorial/ArithmeticOperationTest.java +++ b/src/test/java/soen/tutorial/ArithmeticOperationTest.java @@ -6,26 +6,19 @@ public class ArithmeticOperationTest { - - @Test - public void testAdd() - { - - ArithmeticOperation operations = new ArithmeticOperation(); - Integer actual = operations.addOrSub(2, 6); - Integer expected = 8; - assertEquals(expected, actual); - - } @Test - public void testSub() - { + public void testAdd() { + ArithmeticOperation operations = new ArithmeticOperation(); + Integer actual = operations.addOrSub(2, 6); + Integer expected = 8; + assertEquals(expected, actual); + } + @Test + public void testSub() { ArithmeticOperation operations = new ArithmeticOperation(); Integer actual = operations.addOrSub(6, 2); Integer expected = 4; assertEquals(expected, actual); - } - }