diff options
| author | mokha <mokha@cisco.com> | 2019-05-05 19:36:09 -0600 |
|---|---|---|
| committer | mokha <mokha@cisco.com> | 2019-05-05 19:36:09 -0600 |
| commit | 3c2be35d16d7482442911f5b06b68512f86e15b5 (patch) | |
| tree | 636edf7d09f2cc0b2f006c058071ce5b3d9adda6 /src/BonusOnSavingsTest.java | |
| parent | 46e409f3ca33ec3c7546d0589301c2a4f967c10a (diff) | |
butcher default directory structure to make instructor happy
Diffstat (limited to 'src/BonusOnSavingsTest.java')
| -rw-r--r-- | src/BonusOnSavingsTest.java | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/BonusOnSavingsTest.java b/src/BonusOnSavingsTest.java new file mode 100644 index 0000000..e19d447 --- /dev/null +++ b/src/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)); + } +} |
