diff options
| author | mokha <mokha@cisco.com> | 2019-05-05 19:48:09 -0600 |
|---|---|---|
| committer | mokha <mokha@cisco.com> | 2019-05-05 19:48:09 -0600 |
| commit | 99a28d2dba93642e89a62ecf905a3bd4f138318d (patch) | |
| tree | ee10a7df683642a42991896bbec5ced501a2abd1 /src/section-2/BonusOnSavingsTest.java | |
| parent | 3c2be35d16d7482442911f5b06b68512f86e15b5 (diff) | |
split code into directories closer to what the instructor wants
Diffstat (limited to 'src/section-2/BonusOnSavingsTest.java')
| -rw-r--r-- | src/section-2/BonusOnSavingsTest.java | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/section-2/BonusOnSavingsTest.java b/src/section-2/BonusOnSavingsTest.java new file mode 100644 index 0000000..e19d447 --- /dev/null +++ b/src/section-2/BonusOnSavingsTest.java @@ -0,0 +1,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)); + } +} |
