File tree Expand file tree Collapse file tree
src/test/java/com/ravi/cal/RaviCalculator Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55import static org .junit .Assert .assertEquals ;
66
77public class CalculatorTest {
8-
9- Calculator cal = new Calculator (2 , 3 );
10-
8+
9+ Calculator cal = new Calculator (2 , 3 );
10+
1111 @ Test
12- public void twoAndThreeIsFive () throws Exception {
13- assertEquals (cal .addFucn (2 , 3 ), 5 );
12+ public void sumTest () throws Exception {
13+ assertEquals (5 , cal .addFucn (2 , 3 ));
1414 }
1515
1616 @ Test
17- public void threeMinusTwoIsOne () throws Exception {
18- assertEquals (cal .subFucn (2 , 3 ), 1 );
17+ public void differenceTest () throws Exception {
18+ assertEquals (1 , cal .subFucn (2 , 3 ));
1919 }
20-
20+
2121 @ Test
22- public void threeXThreeIsNine () throws Exception {
23- assertEquals (cal .mulFucn (3 , 3 ), 9 );
22+ public void productTest () throws Exception {
23+ assertEquals (6 , cal .mulFucn (2 , 3 ));
2424 }
25-
2625}
You can’t perform that action at this time.
0 commit comments