MovieFilenameScanner { public static Pattern getTokenDelimitersMatchPattern() { return TOKEN_DELIMITERS_MATCH_PATTERN; } private  MovieFilenameScanner(File file); static Pattern getTokenDelimitersMatchPattern(); static Pattern iwpatt(String regex); static Pattern wpatt(String regex); static String determineLanguage(String language); static String getLanguageList(String language); static MovieFileNameDTO scan(File file); static String[] getSkipKeywords(); static void setSkipKeywords(String[] skipKeywords, boolean caseSensitive); static String[] getSkipRegexKeywords(); static void setSkipRegexKeywords(String[] skipRegexKeywords, boolean caseSensitive); static String[] getExtrasKeywords(); static void setExtrasKeywords(String[] extrasKeywords); static String[] getMovieVersionKeywords(); static void setMovieVersionKeywords(String[] movieVersionKeywords); static boolean isLanguageDetection(); static void setLanguageDetection(boolean languageDetection); MovieFileNameDTO getDto(); File getFile(); String getFilename(); static void clearLanguages(); static void addLanguage(String key, String strictPattern, String loosePattern); static void setSourceKeywords(List<String> keywords, Map<String, String> keywordMap);  }
@Test public void testPatterns() { LOG.info("Patterns"); Matcher matcher = MovieFilenameScanner.getTokenDelimitersMatchPattern().matcher("a]bc.def"); assertTrue(matcher.find()); assertEquals(0, matcher.start()); assertEquals(0, matcher.end()); assertTrue(matcher.find()); assertEquals(1, matcher.start()); assertEquals(2, matcher.end()); assertEquals("]", matcher.group()); assertTrue(matcher.find()); assertEquals(".", matcher.group()); assertTrue(matcher.find()); assertEquals(8, matcher.start()); assertEquals(8, matcher.end()); assertFalse(matcher.find()); }