@Test(expected = IllegalArgumentException.class) public void unsuccessfullyFindResourceTypeByPathTest() { final Path path = mock( Path.class ); doReturn( false ).when( clientResourceType ).accept( path ); classifier.findResourceType( path ); }
public ClientResourceType findResourceType( final FolderItem folderItem ) { if ( folderItem.getItem() instanceof Path ) { return findResourceType( (Path) folderItem.getItem() ); } throw new IllegalArgumentException( "Invalid FolderItem type." ); }
Classifier { public ClientResourceType findResourceType( final FolderItem folderItem ) { if ( folderItem.getItem() instanceof Path ) { return findResourceType( (Path) folderItem.getItem() ); } throw new IllegalArgumentException( "Invalid FolderItem type." ); } }
Classifier { public ClientResourceType findResourceType( final FolderItem folderItem ) { if ( folderItem.getItem() instanceof Path ) { return findResourceType( (Path) folderItem.getItem() ); } throw new IllegalArgumentException( "Invalid FolderItem type." ); }  }
Classifier { public ClientResourceType findResourceType( final FolderItem folderItem ) { if ( folderItem.getItem() instanceof Path ) { return findResourceType( (Path) folderItem.getItem() ); } throw new IllegalArgumentException( "Invalid FolderItem type." ); }  @PostConstruct void init(); Map<ClientResourceType, Collection<FolderItem>> group( final Collection<FolderItem> folderItems ); ClientResourceType findResourceType( final FolderItem folderItem ); ClientResourceType findResourceType( final Path path ); }
Classifier { public ClientResourceType findResourceType( final FolderItem folderItem ) { if ( folderItem.getItem() instanceof Path ) { return findResourceType( (Path) folderItem.getItem() ); } throw new IllegalArgumentException( "Invalid FolderItem type." ); }  @PostConstruct void init(); Map<ClientResourceType, Collection<FolderItem>> group( final Collection<FolderItem> folderItems ); ClientResourceType findResourceType( final FolderItem folderItem ); ClientResourceType findResourceType( final Path path );  }