@Test public void setActionShouldBeExecuted() { view.submitForm = mock(FormPanel.class); view.setAction("url"); verify(view.submitForm).setAction(eq("url")); verify(view.submitForm).setMethod(eq(FormPanel.METHOD_POST)); }
@Override public void setAction(@Nonnull String url) { submitForm.setAction(url); submitForm.setMethod(FormPanel.METHOD_POST); }
UploadFileViewImpl extends Window implements UploadFileView { @Override public void setAction(@Nonnull String url) { submitForm.setAction(url); submitForm.setMethod(FormPanel.METHOD_POST); } }
UploadFileViewImpl extends Window implements UploadFileView { @Override public void setAction(@Nonnull String url) { submitForm.setAction(url); submitForm.setMethod(FormPanel.METHOD_POST); } @Inject  UploadFileViewImpl(UploadFileViewBinder uploadFileViewBinder, CoreLocalizationConstant locale); }
UploadFileViewImpl extends Window implements UploadFileView { @Override public void setAction(@Nonnull String url) { submitForm.setAction(url); submitForm.setMethod(FormPanel.METHOD_POST); } @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 setAction(@Nonnull String url) { submitForm.setAction(url); submitForm.setMethod(FormPanel.METHOD_POST); } @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();  }