Example #1
0
 @Test
 public void testGetters() {
   assertEquals(SURFACE.getName(), NAME1);
   assertEquals(SURFACE.getFunction(), F1);
   assertEquals(SURFACE.getZValue(1., 2.), F1.evaluate(1., 2.), 0);
   assertEquals(SURFACE.getZValue(DoublesPair.of(1., 4.)), F1.evaluate(1., 4.), 0);
 }
Example #2
0
 @Test(expectedExceptions = IllegalArgumentException.class)
 public void testNullPair() {
   SURFACE.getZValue(null);
 }