NumericFunctions { static public String randomNegativeWhole(int length) { return "-" + NumericFunctions.randomPositiveWhole(length); }  static boolean isValid(String[] values); static String executeFunction(String[] values, Variables variables); static String randomPositiveWhole(int length); static String randomNegativeWhole(int length); static String randomPositiveFloat(int whole, int decimal); static String randomNegativeFloat(int whole, int decimal);  }
@Test public void testRandomNegativeWhole_1() throws Exception { int length = 1; String result = NumericFunctions.randomNegativeWhole(length); assertTrue(NumberUtils.isCreatable(result)); assertTrue(NumberUtils.toDouble(result) < 0); }