blob: e19d4473e7eefee77938936fbf157de9e3edd6cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
package ca.mokhan.assignment1;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
public class BonusOnSavingsTest extends TestCase {
private BonusOnSavings subject;
public BonusOnSavingsTest(String testName) {
super(testName);
this.subject = new BonusOnSavings();
}
public static Test suite() {
return new TestSuite(BonusOnSavingsTest.class);
}
public void testComputeBonusEmployeeOne() {
assertEquals(1650.00, subject.computeBonus(2000, 5000, 7000, 4000, 8000));
}
public void testComputeBonusEmployeeTwo() {
assertEquals(4680.00, subject.computeBonus(3000, 6000, 9000, 10000, 17000));
}
}
|