@Test (expected = IllegalArgumentException.class) public void givenAnEmptyFilePath_whenExtractFileNameWithoutExtensionFromFilePath_thenThrows() { String emptyFilePath = ""; extractFileNameWithoutExtensionFromFilePath(emptyFilePath); }
public static String extractFileNameWithoutExtensionFromFilePath(@NonNull String filePath) { checkPreconditionsOnFilePath(filePath); return extractSubstringWithoutExtensionFromString(extractFileNameFromFilePath(filePath)); }
FileHelper { public static String extractFileNameWithoutExtensionFromFilePath(@NonNull String filePath) { checkPreconditionsOnFilePath(filePath); return extractSubstringWithoutExtensionFromString(extractFileNameFromFilePath(filePath)); } }
FileHelper { public static String extractFileNameWithoutExtensionFromFilePath(@NonNull String filePath) { checkPreconditionsOnFilePath(filePath); return extractSubstringWithoutExtensionFromString(extractFileNameFromFilePath(filePath)); }  }
FileHelper { public static String extractFileNameWithoutExtensionFromFilePath(@NonNull String filePath) { checkPreconditionsOnFilePath(filePath); return extractSubstringWithoutExtensionFromString(extractFileNameFromFilePath(filePath)); }  static String extractFilePathWithoutExtensionFromFilePath(@NonNull String filePath); static String extractFileNameWithoutExtensionFromFilePath(@NonNull String filePath); static String extractFileNameFromFilePath(@NonNull String filePath); static Optional<String> extractExtensionFromFilePath(@NonNull String filePath); static boolean endsWithJarOrApkExtension(@NonNull String filePath); }
FileHelper { public static String extractFileNameWithoutExtensionFromFilePath(@NonNull String filePath) { checkPreconditionsOnFilePath(filePath); return extractSubstringWithoutExtensionFromString(extractFileNameFromFilePath(filePath)); }  static String extractFilePathWithoutExtensionFromFilePath(@NonNull String filePath); static String extractFileNameWithoutExtensionFromFilePath(@NonNull String filePath); static String extractFileNameFromFilePath(@NonNull String filePath); static Optional<String> extractExtensionFromFilePath(@NonNull String filePath); static boolean endsWithJarOrApkExtension(@NonNull String filePath); static final String DOT_SEPARATOR; static final String APK_EXTENSION; static final String JAR_EXTENSION; }