コード例 #1
0
 @Test
 public void testProcessZero4() {
   BasicCalculation modifier = new MaxModifierFactory();
   assertEquals(0, modifier.process(-4, 0));
 }
コード例 #2
0
 @Test
 public void testProcessMixed1() {
   BasicCalculation modifier = new MaxModifierFactory();
   assertEquals(5, modifier.process(5, -7));
 }
コード例 #3
0
 @Test
 public void testProcessNegative2() {
   BasicCalculation modifier = new MaxModifierFactory();
   assertEquals(-2, modifier.process(-4, -2));
 }
コード例 #4
0
 @Test
 public void testProcessPositive2() {
   BasicCalculation modifier = new MaxModifierFactory();
   assertEquals(4, modifier.process(4, 3));
 }
コード例 #5
0
 @Test
 public void testProcessDoubleMixed2() {
   BasicCalculation modifier = new MaxModifierFactory();
   assertEquals(3.1, modifier.process(-4.2, 3.1));
 }
コード例 #6
0
 @Test
 public void testProcessDoubleZero4() {
   BasicCalculation modifier = new MaxModifierFactory();
   assertEquals(0.0d, modifier.process(-4.3, 0.0));
 }
コード例 #7
0
 @Test
 public void testProcessDoubleZero3() {
   BasicCalculation modifier = new MaxModifierFactory();
   assertEquals(0.0, modifier.process(0.0, -3.4));
 }
コード例 #8
0
 @Test
 public void testProcessDoublePositive1() {
   BasicCalculation modifier = new MaxModifierFactory();
   assertEquals(3.5, modifier.process(2.6, 3.5));
 }
コード例 #9
0
 @Test
 public void testProcessDoubleNegative1() {
   BasicCalculation modifier = new MaxModifierFactory();
   assertEquals(-2.3, modifier.process(-2.3, -3.4));
 }