@Test public void testIsParentNotASeries() { assertFalse("Testing \"Criminal Minds\"", this.isParentNotASeries("Criminal Minds")); assertFalse("Testing \"\"", this.isParentNotASeries("")); assertFalse("Testing \" \"", this.isParentNotASeries(" ")); assertFalse("Testing null", this.isParentNotASeries(null)); assertTrue("Testing \"Tesis (1996)\"", this.isParentNotASeries("Tesis (1996)")); }
private boolean isParentNotASeries(String parent) { return (parent == null) ? false : parent.trim().matches( ".*(?:\\((\\d{4})\\))$"); }
MovieServiceImpl implements MovieService { private boolean isParentNotASeries(String parent) { return (parent == null) ? false : parent.trim().matches( ".*(?:\\((\\d{4})\\))$"); } }
MovieServiceImpl implements MovieService { private boolean isParentNotASeries(String parent) { return (parent == null) ? false : parent.trim().matches( ".*(?:\\((\\d{4})\\))$"); } MovieServiceImpl(); }
MovieServiceImpl implements MovieService { private boolean isParentNotASeries(String parent) { return (parent == null) ? false : parent.trim().matches( ".*(?:\\((\\d{4})\\))$"); } MovieServiceImpl(); @Override SortedSet<Movie> getMovieSet(String path); String getMovieDirectory(); @Override Set<Movie> filterMovieSetByGenre(Set<Movie> movieSet, String genre); @Override Map<String, Set<Movie>> groupMovieSetByGenre(Set<Movie> movieSet); @Override Summary getSummary(Map<String, Set<Movie>> movieSetGroupedByGenre); @SuppressWarnings("unused") @Override GenreSummary getSummaryByGenre(Set<Movie> movieSetFilteredByGenre,
			String genre); }
MovieServiceImpl implements MovieService { private boolean isParentNotASeries(String parent) { return (parent == null) ? false : parent.trim().matches( ".*(?:\\((\\d{4})\\))$"); } MovieServiceImpl(); @Override SortedSet<Movie> getMovieSet(String path); String getMovieDirectory(); @Override Set<Movie> filterMovieSetByGenre(Set<Movie> movieSet, String genre); @Override Map<String, Set<Movie>> groupMovieSetByGenre(Set<Movie> movieSet); @Override Summary getSummary(Map<String, Set<Movie>> movieSetGroupedByGenre); @SuppressWarnings("unused") @Override GenreSummary getSummaryByGenre(Set<Movie> movieSetFilteredByGenre,
			String genre);  }