test_class.declarator: view
test_class.modifier: @Mock
test_class.original_string: @Mock FileUploadEditor.View view;
test_class.type: FileUploadEditor.View
test_class.var_name: view
test_class.declarator: valueChangeEvent
test_class.modifier: @Mock
test_class.original_string: @Mock EventSourceMock<ValueChangeEvent<String>> valueChangeEvent;
test_class.type: EventSourceMock<ValueChangeEvent<String>>
test_class.var_name: valueChangeEvent
test_class.declarator: workbenchNotificationEvent
test_class.modifier: @Mock
test_class.original_string: @Mock EventSourceMock<NotificationEvent> workbenchNotificationEvent;
test_class.type: EventSourceMock<NotificationEvent>
test_class.var_name: workbenchNotificationEvent
test_class.declarator: presenter
test_class.modifier: private
test_class.original_string: private FileUploadEditor presenter;
test_class.type: FileUploadEditor
test_class.var_name: presenter
test_class.file: dashbuilder-client/dashbuilder-common-client/src/test/java/org/dashbuilder/common/client/editor/file/FileUploadEditorTest.java
test_class.identifier: FileUploadEditorTest
test_class.superclass: extends AbstractEditorTest
test_case.body: @Test
      public void testConfigure() throws Exception {
          FileUploadEditor.FileUploadEditorCallback callback = mock(FileUploadEditor.FileUploadEditorCallback.class);
          presenter.configure("f1", callback);
          assertEquals(view.asWidget(), presenter.asWidget());
          assertEquals(callback, presenter.callback);
          verify(view, times(0)).init(presenter);
          verify(view, times(0)).addHelpContent(anyString(), anyString(), any(Placement.class));
          verify(view, times(1)).setFileUploadName("f1");
          verify(view, times(0)).setFileUploadVisible(anyBoolean());
          verify(view, times(0)).setFileLabelText(anyString());
          verify(view, times(0)).setFileLabelVisible(anyBoolean());
          verify(view, times(0)).setLoadingImageVisible(false);
          verify(view, times(0)).getFileName();
          verify(view, times(0)).setFormAction(anyString());
          verify(view, times(0)).submit();
          verify(view, times(0)).showError(any(SafeHtml.class));
          verify(view, times(0)).clearError();
      }
test_case.class_method_signature: FileUploadEditorTest.testConfigure()
test_case.full_signature: @Test public void testConfigure()
test_case.identifier: testConfigure
test_case.invocations: mock configure assertEquals asWidget asWidget assertEquals init verify times addHelpContent verify times anyString anyString any setFileUploadName verify times setFileUploadVisible verify times anyBoolean setFileLabelText verify times anyString setFileLabelVisible verify times anyBoolean setLoadingImageVisible verify times getFileName verify times setFormAction verify times anyString submit verify times showError verify times any clearError verify times
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testConfigure()
focal_class.declarator: workbenchNotification
focal_class.original_string: Event<NotificationEvent> workbenchNotification;
focal_class.type: Event<NotificationEvent>
focal_class.var_name: workbenchNotification
focal_class.declarator: valueChangeEvent
focal_class.original_string: Event<org.dashbuilder.common.client.event.ValueChangeEvent<String>> valueChangeEvent;
focal_class.type: Event<org.dashbuilder.common.client.event.ValueChangeEvent<String>>
focal_class.var_name: valueChangeEvent
focal_class.declarator: view
focal_class.modifier: public
focal_class.original_string: public View view;
focal_class.type: View
focal_class.var_name: view
focal_class.declarator: value
focal_class.original_string: String value;
focal_class.type: String
focal_class.var_name: value
focal_class.declarator: callback
focal_class.original_string: FileUploadEditorCallback callback;
focal_class.type: FileUploadEditorCallback
focal_class.var_name: callback
focal_class.file: dashbuilder-client/dashbuilder-common-client/src/main/java/org/dashbuilder/common/client/editor/file/FileUploadEditor.java
focal_class.identifier: FileUploadEditor
focal_class.interfaces: implements IsWidget, LeafAttributeEditor<String>
focal_class.class_method_signature: FileUploadEditor.FileUploadEditor(final Event<org.dashbuilder.common.client.event.ValueChangeEvent<String>> valueChangeEvent,
                              final Event<NotificationEvent> workbenchNotification,
                              final View view)
focal_class.full_signature: @Inject public  FileUploadEditor(final Event<org.dashbuilder.common.client.event.ValueChangeEvent<String>> valueChangeEvent,
                              final Event<NotificationEvent> workbenchNotification,
                              final View view)
focal_class.identifier: FileUploadEditor
focal_class.modifiers: @Inject public
focal_class.parameters: (final Event<org.dashbuilder.common.client.event.ValueChangeEvent<String>> valueChangeEvent,
                              final Event<NotificationEvent> workbenchNotification,
                              final View view)
focal_class.signature:  FileUploadEditor(final Event<org.dashbuilder.common.client.event.ValueChangeEvent<String>> valueChangeEvent,
                              final Event<NotificationEvent> workbenchNotification,
                              final View view)
focal_class.class_method_signature: FileUploadEditor.init()
focal_class.full_signature: @PostConstruct public void init()
focal_class.identifier: init
focal_class.modifiers: @PostConstruct public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void init()
focal_class.class_method_signature: FileUploadEditor.configure(final String fileUploadName, final FileUploadEditorCallback callback)
focal_class.full_signature: public void configure(final String fileUploadName, final FileUploadEditorCallback callback)
focal_class.identifier: configure
focal_class.modifiers: public
focal_class.parameters: (final String fileUploadName, final FileUploadEditorCallback callback)
focal_class.return: void
focal_class.signature: void configure(final String fileUploadName, final FileUploadEditorCallback callback)
focal_class.class_method_signature: FileUploadEditor.addHelpContent(final String title, final String content, final Placement placement)
focal_class.full_signature: public void addHelpContent(final String title, final String content, final Placement placement)
focal_class.identifier: addHelpContent
focal_class.modifiers: public
focal_class.parameters: (final String title, final String content, final Placement placement)
focal_class.return: void
focal_class.signature: void addHelpContent(final String title, final String content, final Placement placement)
focal_class.class_method_signature: FileUploadEditor.showErrors(List<EditorError> errors)
focal_class.full_signature: @Override public void showErrors(List<EditorError> errors)
focal_class.identifier: showErrors
focal_class.modifiers: @Override public
focal_class.parameters: (List<EditorError> errors)
focal_class.return: void
focal_class.signature: void showErrors(List<EditorError> errors)
focal_class.class_method_signature: FileUploadEditor.asWidget()
focal_class.full_signature: @Override public Widget asWidget()
focal_class.identifier: asWidget
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Widget
focal_class.signature: Widget asWidget()
focal_class.class_method_signature: FileUploadEditor.setValue(final String value)
focal_class.full_signature: @Override public void setValue(final String value)
focal_class.identifier: setValue
focal_class.modifiers: @Override public
focal_class.parameters: (final String value)
focal_class.return: void
focal_class.signature: void setValue(final String value)
focal_class.class_method_signature: FileUploadEditor.getValue()
focal_class.full_signature: @Override public String getValue()
focal_class.identifier: getValue
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getValue()
focal_class.class_method_signature: FileUploadEditor.getUploadFileName()
focal_class.full_signature:  String getUploadFileName()
focal_class.identifier: getUploadFileName
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getUploadFileName()
focal_class.class_method_signature: FileUploadEditor.getUploadFileUrl()
focal_class.full_signature:  String getUploadFileUrl()
focal_class.identifier: getUploadFileUrl
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getUploadFileUrl()
focal_class.class_method_signature: FileUploadEditor.onSubmit()
focal_class.full_signature:  boolean onSubmit()
focal_class.identifier: onSubmit
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean onSubmit()
focal_class.class_method_signature: FileUploadEditor.onSubmitComplete(final String results)
focal_class.full_signature:  void onSubmitComplete(final String results)
focal_class.identifier: onSubmitComplete
focal_class.parameters: (final String results)
focal_class.return: void
focal_class.signature: void onSubmitComplete(final String results)
focal_class.class_method_signature: FileUploadEditor.fileUploadHandler()
focal_class.full_signature:  void fileUploadHandler()
focal_class.identifier: fileUploadHandler
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void fileUploadHandler()
focal_class.class_method_signature: FileUploadEditor.isNullOrEmpty( final String fileName )
focal_class.full_signature: private boolean isNullOrEmpty( final String fileName )
focal_class.identifier: isNullOrEmpty
focal_class.modifiers: private
focal_class.parameters: ( final String fileName )
focal_class.return: boolean
focal_class.signature: boolean isNullOrEmpty( final String fileName )
focal_class.class_method_signature: FileUploadEditor.onValueChanged(final String value)
focal_class.full_signature:  void onValueChanged(final String value)
focal_class.identifier: onValueChanged
focal_class.parameters: (final String value)
focal_class.return: void
focal_class.signature: void onValueChanged(final String value)
focal_method.body: public void configure(final String fileUploadName, final FileUploadEditorCallback callback) {
          view.setFileUploadName(fileUploadName);
          this.callback = callback;
      }
focal_method.class_method_signature: FileUploadEditor.configure(final String fileUploadName, final FileUploadEditorCallback callback)
focal_method.full_signature: public void configure(final String fileUploadName, final FileUploadEditorCallback callback)
focal_method.identifier: configure
focal_method.invocations: setFileUploadName
focal_method.modifiers: public
focal_method.parameters: (final String fileUploadName, final FileUploadEditorCallback callback)
focal_method.return: void
focal_method.signature: void configure(final String fileUploadName, final FileUploadEditorCallback callback)