Helper extends ErrorAware { public static String doubleTo15DigitString(double d) { return String.format(Locale.US, "%.15f", d); }  static void deleteDir(File file); static long folderSize(File directory); static String getResultString(HttpURLConnection http); static boolean saveUrlToFile(String url, File file); static String doubleTo15DigitString(double d); static AlertDialog.Builder getAlertBuilder(Context context); static boolean setBitmapFromFileOrNull(File file, ImageView imageView); static double metersToDegrees(double distanceInMeters); static int directionFromPositionToPositionAsResourceId(IPosition me, IPosition other); static int directionFromPositionToPositionAsResourceId(
            double fromLongitude, double fromLatitude, double toLongitude, double toLatitude); static double distanceInMetersBetween(double longitude1, double latitude1, double longitude2, double latitude2); static void trustAllConnections(); static int compare(long a , long b); static Map<String, List<String>> splitQuery(String query);  }
@Test public void testDoubleToString(){ assertEquals(Helper.doubleTo15DigitString(25.25), "25.250000000000000"); assertEquals(Helper.doubleTo15DigitString(-154782.24445), "-154782.244450000000000"); }
@Test public void doubleTo15DigitString() { double number1 = 5.123456789123456789; String dString1 = Helper.doubleTo15DigitString(number1); double doubleResult1 = 5.123456789123456; String stringResult1 = Double.toString(doubleResult1); assertEquals(stringResult1, dString1); double number2 = 12.9856332145624323233; ; String dString2 = Helper.doubleTo15DigitString(number2); double doubleResult2 = 12.985633214562432; String stringResult2 = Double.toString(doubleResult2); assertEquals(stringResult2, dString2); }