@Test public void closeShouldBeExecuted() { view.uploadPanel = mock(FlowPanel.class); view.file = mock(FileUpload.class); view.overwrite = mock(CheckBox.class); view.btnUpload = mock(Button.class); view.closeDialog(); verify(view.uploadPanel).remove((FileUpload)anyObject()); verify(view.btnUpload).setEnabled(eq(false)); verify(view.overwrite).setValue(eq(false)); }
@Override public void closeDialog() { this.hide(); this.onClose(); btnUpload.setEnabled(false); overwrite.setValue(false); }
UploadFileViewImpl extends Window implements UploadFileView { @Override public void closeDialog() { this.hide(); this.onClose(); btnUpload.setEnabled(false); overwrite.setValue(false); } }
UploadFileViewImpl extends Window implements UploadFileView { @Override public void closeDialog() { this.hide(); this.onClose(); btnUpload.setEnabled(false); overwrite.setValue(false); } @Inject  UploadFileViewImpl(UploadFileViewBinder uploadFileViewBinder, CoreLocalizationConstant locale); }
UploadFileViewImpl extends Window implements UploadFileView { @Override public void closeDialog() { this.hide(); this.onClose(); btnUpload.setEnabled(false); overwrite.setValue(false); } @Inject  UploadFileViewImpl(UploadFileViewBinder uploadFileViewBinder, CoreLocalizationConstant locale); @Override void showDialog(); @Override void closeDialog(); @Override void setDelegate(ActionDelegate delegate); @Override void setEnabledUploadButton(boolean enabled); @Override void setEncoding(@Nonnull String encodingType); @Override void setAction(@Nonnull String url); @Override void submit(); @Override @Nonnull String getFileName(); @Override boolean isOverwriteFileSelected(); }
UploadFileViewImpl extends Window implements UploadFileView { @Override public void closeDialog() { this.hide(); this.onClose(); btnUpload.setEnabled(false); overwrite.setValue(false); } @Inject  UploadFileViewImpl(UploadFileViewBinder uploadFileViewBinder, CoreLocalizationConstant locale); @Override void showDialog(); @Override void closeDialog(); @Override void setDelegate(ActionDelegate delegate); @Override void setEnabledUploadButton(boolean enabled); @Override void setEncoding(@Nonnull String encodingType); @Override void setAction(@Nonnull String url); @Override void submit(); @Override @Nonnull String getFileName(); @Override boolean isOverwriteFileSelected();  }