@Test public void testParseMajor() { String schVersion = SchVersionUtil.formatToSchVersion("2"); assertEquals("v2", schVersion); }
public static String formatToSchVersion(String version) { if (version.contains(".")) { return "v" + version.substring(0, version.indexOf(".")); } else { return "v" + version; } }
SchVersionUtil { public static String formatToSchVersion(String version) { if (version.contains(".")) { return "v" + version.substring(0, version.indexOf(".")); } else { return "v" + version; } } }
SchVersionUtil { public static String formatToSchVersion(String version) { if (version.contains(".")) { return "v" + version.substring(0, version.indexOf(".")); } else { return "v" + version; } } private  SchVersionUtil(); }
SchVersionUtil { public static String formatToSchVersion(String version) { if (version.contains(".")) { return "v" + version.substring(0, version.indexOf(".")); } else { return "v" + version; } } private  SchVersionUtil(); static String formatToSchVersion(String version); }
SchVersionUtil { public static String formatToSchVersion(String version) { if (version.contains(".")) { return "v" + version.substring(0, version.indexOf(".")); } else { return "v" + version; } } private  SchVersionUtil(); static String formatToSchVersion(String version);  }