QuickNewProcessInstancePopup extends BaseModal implements FormDisplayerView { public void closePopup() { initialized = false; body.clear(); removeFooter(this); hide(); super.hide(); } QuickNewProcessInstancePopup(); void show(Long parentProcessInstanceId); void show(String serverTemplateId); void displayNotification(String text); @Override void display(GenericFormDisplayer displayer); void closePopup(); @Override void displayErrorMessage(String header, String errorMessage); @Override Command getOnCloseCommand(); @Override void setOnCloseCommand(Command onCloseCommand); @Override GenericFormDisplayer getCurrentDisplayer(); @Inject void setProcessRuntimeDataService(Caller<ProcessRuntimeDataService> processRuntimeDataService); static final String FIELD_ID_PROCESSNAME; @UiField
    public FlowPanel processForm; @UiField
    public FlowPanel basicForm; @UiField
    public HelpBlock errorMessages; @UiField
    public FormGroup errorMessagesGroup; @UiField
    public FormGroup processDefinitionsControlGroup; @UiField
    public Select processDefinitionsListBox; @UiField
    public HelpBlock processDefinitionsHelpLabel; @UiField
    public FlowPanel body; }
@Test public void testClosePopup() { quickNewProcessInstancePopup.setFlowPanelBody(body); quickNewProcessInstancePopup.closePopup(); verify(body).clear(); }