示例#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));
 }