@Test public void string1_is_part_of_string2_returns_false() { assertThat(SimpleStringUtils.startsWith("string1", "string2"), is(false)); assertThat(SimpleStringUtils.startsWith("string2", "string1"), is(false)); }
public static boolean startsWith(String part, String full) { if (part == null && full == null) { return true; } if (part == null || full == null) { return false; } return full.startsWith(part); }
SimpleStringUtils { public static boolean startsWith(String part, String full) { if (part == null && full == null) { return true; } if (part == null || full == null) { return false; } return full.startsWith(part); } }
SimpleStringUtils { public static boolean startsWith(String part, String full) { if (part == null && full == null) { return true; } if (part == null || full == null) { return false; } return full.startsWith(part); } private  SimpleStringUtils(); }
SimpleStringUtils { public static boolean startsWith(String part, String full) { if (part == null && full == null) { return true; } if (part == null || full == null) { return false; } return full.startsWith(part); } private  SimpleStringUtils(); static boolean equals(String str1, String str2); static boolean startsWith(String part, String full); static String emptyToNull(String value); static String truncateWhenTooLong(String string, int maxLength); }
SimpleStringUtils { public static boolean startsWith(String part, String full) { if (part == null && full == null) { return true; } if (part == null || full == null) { return false; } return full.startsWith(part); } private  SimpleStringUtils(); static boolean equals(String str1, String str2); static boolean startsWith(String part, String full); static String emptyToNull(String value); static String truncateWhenTooLong(String string, int maxLength);  }