DataSetDefProviderTypeEditor implements IsWidget,
                                                     org.dashbuilder.dataset.client.editor.DataSetDefProviderTypeEditor { void onItemClicked(@Observes ValueChangeEvent<DataSetProviderType> event) { PortablePreconditions.checkNotNull("ValueChangeEvent<DataSetProviderType>", event); if (event.getContext().equals(provider)) { createEvent.fire(new DataSetDefCreationRequestEvent(this, event.getValue())); } } @Inject  DataSetDefProviderTypeEditor(final HorizImageListEditor<DataSetProviderType> provider,
                                        final Event<DataSetDefCreationRequestEvent> createEvent,
                                        final View view); @PostConstruct void init(); @Override Widget asWidget(); @Override void showErrors(final List<EditorError> errors); @Override HorizImageListEditor<DataSetProviderType> provider(); public View view; }
@Test public void testProviderSelected() throws Exception { tested.onItemClicked(new ValueChangeEvent<>(provider, null, DataSetProviderType.BEAN)); verify(createEvent).fire(any()); }