@Test public void testFormatDescription() { String description = Utils.formatDescription("description"); assertNotNull(description); assertEquals("description", description); }
public static String formatDescription(String desc) { if (desc.length() > MAX_DESC_LEN) { return desc.substring(0, MAX_DESC_LEN); } else { return desc; } }
Utils { public static String formatDescription(String desc) { if (desc.length() > MAX_DESC_LEN) { return desc.substring(0, MAX_DESC_LEN); } else { return desc; } } }
Utils { public static String formatDescription(String desc) { if (desc.length() > MAX_DESC_LEN) { return desc.substring(0, MAX_DESC_LEN); } else { return desc; } } private  Utils(); }
Utils { public static String formatDescription(String desc) { if (desc.length() > MAX_DESC_LEN) { return desc.substring(0, MAX_DESC_LEN); } else { return desc; } } private  Utils(); static String soapCall(URL url, String soapData, String soapAction,
            String xPathResult); static UserToken decrypt(String message); static String jsonOutput(Object data); static String formatMontant(String montant); static String formatDescription(String desc); static String readFile(File inputFile); }
Utils { public static String formatDescription(String desc) { if (desc.length() > MAX_DESC_LEN) { return desc.substring(0, MAX_DESC_LEN); } else { return desc; } } private  Utils(); static String soapCall(URL url, String soapData, String soapAction,
            String xPathResult); static UserToken decrypt(String message); static String jsonOutput(Object data); static String formatMontant(String montant); static String formatDescription(String desc); static String readFile(File inputFile);  }