UploadFormViewImpl extends BaseModal implements UploadFormView { @Override public void removeFromParent() { super.removeFromParent(); uploader.clear(); } UploadFormViewImpl(); @Override void init(final Presenter presenter); @Override void showUploadingBusy(); @Override void hideUploadingBusy(); @Override void showSelectFileUploadWarning(); @Override void showUnsupportedFileTypeWarning(); @Override void showUploadedSuccessfullyMessage(); @Override void showInvalidJarNoPomWarning(); @Override void showInvalidPomWarning(); @Override void showUploadFailedError(final String message); @Override void showGAVInputs(); @Override void hideGAVInputs(); @Override String getFileName(); @Override void hide(); @Override void removeFromParent();  }
@Test public void testRemoveFromParent() { doCallRealMethod().when(testedView).removeFromParent(); testedView.removeFromParent(); verify(uploader).clear(); }