Conversion { public static double bytesToMegaBytes(final double bytes){ return bytes / MEGA; } private  Conversion(); static double bytesToMegaBytes(final double bytes); static double bytesToGigaBytes(final double bytes); static double bytesToKiloBytes(final double bytes); static String bytesToStr(final double bytes); static double bytesToMegaBits(final double bytes); static double bytesToBits(final double bytes); static double bitesToBytes(final double bits); static double megaBytesToBytes(final double megaBytes); static double megaToGiga(final double mega); static double megaToTera(final double mega); static double gigaToMega(final double giga); static double teraToMega(final double tera); static double teraToGiga(final double tera); static int boolToInt(final boolean bool); static final double HUNDRED_PERCENT; static final int MILLION; static final double KILO; static final double MEGA; static final double GIGA; static final double TERA; }
@Test public void bytesToMegaBytes(){ final float expectedMegaBytes = 1; assertEquals(expectedMegaBytes, Conversion.bytesToMegaBytes(ONE_MEGABYTE_IN_BYTES)); }