@Test(expected = TemperatureOutOfBoundsException.class) public void testClosestToZeroException() throws TemperatureOutOfBoundsException { closestToZero.closestToZero(new double[] {-288, 5}); }
@Test public void testClosestToZeroNull() throws TemperatureOutOfBoundsException { Assert.assertEquals(0.0, closestToZero.closestToZero(null)); }
@Test public void testClosestToZero() throws TemperatureOutOfBoundsException { Assert.assertEquals(VALUE_TO_CHECK, closestToZero.closestToZero(testDouble)); }