@Test public void shouldFireFileOpenEventOnProcessNodeAction() throws Exception { fileNode.processNodeAction(); verify(eventBus).fireEvent(Matchers.<FileEvent>anyObject()); }
@Override public void processNodeAction() { eventBus.fireEvent(new FileEvent(this, FileEvent.FileOperation.OPEN)); }
FileNode extends ItemNode implements VirtualFile { @Override public void processNodeAction() { eventBus.fireEvent(new FileEvent(this, FileEvent.FileOperation.OPEN)); } }
FileNode extends ItemNode implements VirtualFile { @Override public void processNodeAction() { eventBus.fireEvent(new FileEvent(this, FileEvent.FileOperation.OPEN)); } @Inject  FileNode(@Assisted TreeNode<?> parent,
                    @Assisted ItemReference data,
                    @Assisted TreeStructure treeStructure,
                    EventBus eventBus,
                    ProjectServiceClient projectServiceClient,
                    DtoUnmarshallerFactory dtoUnmarshallerFactory); }
FileNode extends ItemNode implements VirtualFile { @Override public void processNodeAction() { eventBus.fireEvent(new FileEvent(this, FileEvent.FileOperation.OPEN)); } @Inject  FileNode(@Assisted TreeNode<?> parent,
                    @Assisted ItemReference data,
                    @Assisted TreeStructure treeStructure,
                    EventBus eventBus,
                    ProjectServiceClient projectServiceClient,
                    DtoUnmarshallerFactory dtoUnmarshallerFactory); @Override boolean isLeaf(); @Override void processNodeAction(); @Override void delete(final DeleteCallback callback); @Nullable @Override String getMediaType(); @Override boolean isReadOnly(); @Override String getContentUrl(); void getContent(final AsyncCallback<String> callback); void updateContent(String content, final AsyncCallback<Void> callback); @Override boolean equals(Object o); @Override int hashCode(); @Override boolean canContainsFolder(); }
FileNode extends ItemNode implements VirtualFile { @Override public void processNodeAction() { eventBus.fireEvent(new FileEvent(this, FileEvent.FileOperation.OPEN)); } @Inject  FileNode(@Assisted TreeNode<?> parent,
                    @Assisted ItemReference data,
                    @Assisted TreeStructure treeStructure,
                    EventBus eventBus,
                    ProjectServiceClient projectServiceClient,
                    DtoUnmarshallerFactory dtoUnmarshallerFactory); @Override boolean isLeaf(); @Override void processNodeAction(); @Override void delete(final DeleteCallback callback); @Nullable @Override String getMediaType(); @Override boolean isReadOnly(); @Override String getContentUrl(); void getContent(final AsyncCallback<String> callback); void updateContent(String content, final AsyncCallback<Void> callback); @Override boolean equals(Object o); @Override int hashCode(); @Override boolean canContainsFolder();  }