InputPathResolver { public static boolean containsDateVariables(String pattern) { return pattern.contains("${yyyy}") || pattern.contains("${MM}") || pattern.contains("${dd}") || pattern.contains("${DDD}"); } InputPathResolver(); String getRegionName(); void setRegionName(String regionName); Date getMinDate(); void setMinDate(Date minDate); Date getMaxDate(); void setMaxDate(Date maxDate); List<String> resolve(String inputPathPatterns); List<String> resolveMultiYear(String inputPathPatterns); static List<String> getInputPathPatterns(String inputPathPattern, Date minDate, Date maxDate,
                                                    String regionName); static boolean containsDateVariables(String pattern);  }
@Test public void testContainsDateVariables() throws Exception { assertFalse(InputPathResolver.containsDateVariables("")); assertFalse(InputPathResolver.containsDateVariables("foo")); assertTrue(InputPathResolver.containsDateVariables("/foo/${yyyy}/${MM}/${dd}/.*.N1")); assertTrue(InputPathResolver.containsDateVariables("/foo/${yyyy}/${MM}/.*.N1")); assertTrue(InputPathResolver.containsDateVariables("/foo/${yyyy}.*.N1")); }