@@ -0,0 +1,1218 @@
+package tests;%0A%0Aimport junit.framework.TestCase;%0Aimport api.SimpleAPI;%0A%0Apublic class TestSimpleAPI extends TestCase %7B%0A%09/**%0A%09 * Test method for %7B@link api.SimpleAPI#add(int, int)%7D.%0A%09 */%0A%09public void testAdd() %7B%0A%09%09int a = SimpleAPI.add(2, 3);%0A%09%09assertTrue(%22Add API not working. Expected 5 but received: %22 + a, a == 5);%0A%09%7D%0A%0A%09/**%0A%09 * Test method for %7B@link api.SimpleAPI#subtract(int, int)%7D.%0A%09 */%0A%09public void testSubtract() %7B%0A%09%09int a = SimpleAPI.subtract(2, 3);%0A%09%09assertTrue(%22Subtract API not working. Expected -1 but received: %22 + a, a == -1);%0A%0A%09%09a = SimpleAPI.subtract(3, -4);%0A%09%09assertTrue(%22Subtract API not working. Expected 7 but received: %22 + a, a == 7);%0A%0A%09%09a = SimpleAPI.subtract(5, 4);%0A%09%09assertTrue(%22Subtract API not working. Expected 1 but received: %22 + a, a == 1);%0A%09%7D%0A%0A%09/**%0A%09 * Test method for %7B@link api.SimpleAPI#divide(int, int)%7D.%0A%09 */%0A%09public void testDivide() %7B%0A%09%09int a = SimpleAPI.divide(44, 11);%0A%09%09assertTrue(%22Subtract API not working. Expected 4 but received: %22 + a, a == 4);%0A%09%7D%0A%0A%09/**%0A%09 * Test method for %7B@link api.SimpleAPI#multiply(int, int)%7D.%0A%09 */%0A%09public void testMultiply() %7B%0A%09%09int a = SimpleAPI.multiply(2, 3);%0A%09%09assertTrue(%22Multiply API not working. Expected 6 but received: %22 + a, a == 6);%0A%09%7D%0A%7D%0A

Add tests for simple api