コード例 #1
0
 @Test(expected = TemperatureOutOfBoundsException.class)
 public void testClosestToZeroException() throws TemperatureOutOfBoundsException {
   closestToZero.closestToZero(new double[] {-288, 5});
 }
コード例 #2
0
 @Test
 public void testClosestToZeroNull() throws TemperatureOutOfBoundsException {
   Assert.assertEquals(0.0, closestToZero.closestToZero(null));
 }
コード例 #3
0
 @Test
 public void testClosestToZero() throws TemperatureOutOfBoundsException {
   Assert.assertEquals(VALUE_TO_CHECK, closestToZero.closestToZero(testDouble));
 }