@Test public void testParse() throws AccessDeniedException { Transmit5BookmarkCollection c = new Transmit5BookmarkCollection(); assertEquals(0, c.size()); c.parse(new ProtocolFactory(new HashSet<>(Collections.singletonList(new TestProtocol(Scheme.sftp)))), new Local("src/test/resources/")); assertEquals(1, c.size()); }
@Override protected void parse(final ProtocolFactory protocols, final Local folder) throws AccessDeniedException { for(Local f : folder.list().filter(new NullFilter<Local>() { @Override public boolean accept(Local file) { if(file.isFile()) { return "favoriteMetadata".equals(file.getExtension()); } return false; } })) { this.read(protocols, f); } }
Transmit5BookmarkCollection extends ThirdpartyBookmarkCollection { @Override protected void parse(final ProtocolFactory protocols, final Local folder) throws AccessDeniedException { for(Local f : folder.list().filter(new NullFilter<Local>() { @Override public boolean accept(Local file) { if(file.isFile()) { return "favoriteMetadata".equals(file.getExtension()); } return false; } })) { this.read(protocols, f); } } }
Transmit5BookmarkCollection extends ThirdpartyBookmarkCollection { @Override protected void parse(final ProtocolFactory protocols, final Local folder) throws AccessDeniedException { for(Local f : folder.list().filter(new NullFilter<Local>() { @Override public boolean accept(Local file) { if(file.isFile()) { return "favoriteMetadata".equals(file.getExtension()); } return false; } })) { this.read(protocols, f); } }  }
Transmit5BookmarkCollection extends ThirdpartyBookmarkCollection { @Override protected void parse(final ProtocolFactory protocols, final Local folder) throws AccessDeniedException { for(Local f : folder.list().filter(new NullFilter<Local>() { @Override public boolean accept(Local file) { if(file.isFile()) { return "favoriteMetadata".equals(file.getExtension()); } return false; } })) { this.read(protocols, f); } }  @Override Local getFile(); @Override String getBundleIdentifier(); @Override String getName(); String getConfiguration(); }
Transmit5BookmarkCollection extends ThirdpartyBookmarkCollection { @Override protected void parse(final ProtocolFactory protocols, final Local folder) throws AccessDeniedException { for(Local f : folder.list().filter(new NullFilter<Local>() { @Override public boolean accept(Local file) { if(file.isFile()) { return "favoriteMetadata".equals(file.getExtension()); } return false; } })) { this.read(protocols, f); } }  @Override Local getFile(); @Override String getBundleIdentifier(); @Override String getName(); String getConfiguration();  }