@Test public void testRefresh() throws Exception { RepositoryDirectory rd = Mockito.mock( RepositoryDirectory.class ); Mockito.when( rd.getObjectId() ).thenReturn( new LongObjectId( 0L ) ); UIRepositoryDirectory uiDir = new UIRepositoryDirectory( rd, null, null ); uiDir.populateChildren(); uiDir.getRepositoryObjects(); uiDir.clear(); Mockito.verify( rd ).getChildren(); Mockito.verify( rd ).getRepositoryObjects(); }
public void refresh() { kidElementCache = null; kidDirectoryCache = null; rd.clear(); populateChildren(); try { if ( obj != null ) { getRepositoryObjects(); } } catch ( KettleException ignored ) { } fireCollectionChanged(); }
UIRepositoryDirectory extends UIRepositoryObject { public void refresh() { kidElementCache = null; kidDirectoryCache = null; rd.clear(); populateChildren(); try { if ( obj != null ) { getRepositoryObjects(); } } catch ( KettleException ignored ) { } fireCollectionChanged(); } }
UIRepositoryDirectory extends UIRepositoryObject { public void refresh() { kidElementCache = null; kidDirectoryCache = null; rd.clear(); populateChildren(); try { if ( obj != null ) { getRepositoryObjects(); } } catch ( KettleException ignored ) { } fireCollectionChanged(); } UIRepositoryDirectory();  UIRepositoryDirectory( RepositoryDirectoryInterface rd, UIRepositoryDirectory uiParent, Repository rep ); }
UIRepositoryDirectory extends UIRepositoryObject { public void refresh() { kidElementCache = null; kidDirectoryCache = null; rd.clear(); populateChildren(); try { if ( obj != null ) { getRepositoryObjects(); } } catch ( KettleException ignored ) { } fireCollectionChanged(); } UIRepositoryDirectory();  UIRepositoryDirectory( RepositoryDirectoryInterface rd, UIRepositoryDirectory uiParent, Repository rep ); UIRepositoryDirectories getChildren(); void populateChildren(); boolean isPopulated(); void setPopulated( boolean populated ); void cleanup(); void setChildren( UIRepositoryDirectories children ); UIRepositoryObjects getRepositoryObjects(); String toString(); void setName( String name ); String getDescription(); String getLockMessage(); Date getModifiedDate(); String getModifiedUser(); RepositoryObjectType getRepositoryElementType(); @Override boolean isDeleted(); @Override String getType(); @Override String getFormatModifiedDate(); RepositoryDirectory getDirectory(); @Override String getImage(); void delete(); String checkDirNameExistsInRepo( String name ); UIRepositoryDirectory createFolder( String name ); void fireCollectionChanged(); @Override void move( UIRepositoryDirectory newParentDir ); void refresh(); @Override int getCategory(); boolean isExpanded(); void setExpanded( boolean expand ); void toggleExpanded(); UIRepositoryDirectory getParent(); String getPath(); boolean isVisible(); @Override int size(); @Override UIRepositoryObject get( int index ); @Override Iterator<UIRepositoryObject> iterator(); boolean contains( String dirName ); @Override int hashCode(); @Override boolean equals( Object obj ); }
UIRepositoryDirectory extends UIRepositoryObject { public void refresh() { kidElementCache = null; kidDirectoryCache = null; rd.clear(); populateChildren(); try { if ( obj != null ) { getRepositoryObjects(); } } catch ( KettleException ignored ) { } fireCollectionChanged(); } UIRepositoryDirectory();  UIRepositoryDirectory( RepositoryDirectoryInterface rd, UIRepositoryDirectory uiParent, Repository rep ); UIRepositoryDirectories getChildren(); void populateChildren(); boolean isPopulated(); void setPopulated( boolean populated ); void cleanup(); void setChildren( UIRepositoryDirectories children ); UIRepositoryObjects getRepositoryObjects(); String toString(); void setName( String name ); String getDescription(); String getLockMessage(); Date getModifiedDate(); String getModifiedUser(); RepositoryObjectType getRepositoryElementType(); @Override boolean isDeleted(); @Override String getType(); @Override String getFormatModifiedDate(); RepositoryDirectory getDirectory(); @Override String getImage(); void delete(); String checkDirNameExistsInRepo( String name ); UIRepositoryDirectory createFolder( String name ); void fireCollectionChanged(); @Override void move( UIRepositoryDirectory newParentDir ); void refresh(); @Override int getCategory(); boolean isExpanded(); void setExpanded( boolean expand ); void toggleExpanded(); UIRepositoryDirectory getParent(); String getPath(); boolean isVisible(); @Override int size(); @Override UIRepositoryObject get( int index ); @Override Iterator<UIRepositoryObject> iterator(); boolean contains( String dirName ); @Override int hashCode(); @Override boolean equals( Object obj );  }