@Test public void getEBCFromSRM() { assert(2 == MetricConverter.getEBC(1)); assert(4 == MetricConverter.getEBC(2)); assert(20 == MetricConverter.getEBC(10)); assert(79 == MetricConverter.getEBC(40)); assert(-2 == MetricConverter.getEBC(-1)); assert(0 == MetricConverter.getEBC(0)); assert(11 == MetricConverter.getEBC(5.5)); }
public static double getEBC(double inSRM) { return (int) Math.round(inSRM * SRM); }
MetricConverter { public static double getEBC(double inSRM) { return (int) Math.round(inSRM * SRM); } }
MetricConverter { public static double getEBC(double inSRM) { return (int) Math.round(inSRM * SRM); }  }
MetricConverter { public static double getEBC(double inSRM) { return (int) Math.round(inSRM * SRM); }  static double getEBC(double inSRM); static double getEBC(String inSRM); static double getSRM(double inEBC); static String getPlato(double gravity); static boolean isCountryMetric(String country); }
MetricConverter { public static double getEBC(double inSRM) { return (int) Math.round(inSRM * SRM); }  static double getEBC(double inSRM); static double getEBC(String inSRM); static double getSRM(double inEBC); static String getPlato(double gravity); static boolean isCountryMetric(String country);  }