@Test public void givenFilePathWithExtension_whenExtractFileNameWithoutExtensionFromFilePath_thenReturnsTheFileNameWithoutTheExtension() { String extractedFileName = extractFileNameWithoutExtensionFromFilePath(TEST_FILE_PATH_WITH_CONTAINER_EXTENSION); assertThat(extractedFileName, is(equalTo(TEST_FILE_NAME_WITH_NO_EXTENSION))); }
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; }