@Test @SuppressWarnings("unchecked") public void unknownColumnTypeDoesNotTriggerBuilder() { final Callback<String> callback = mock(Callback.class); columnDefinitionFactory.generateColumnDefinition(dtPresenter, new RowNumberCol52(), callback); verify(callback, never()).callback(any(String.class)); }
public void generateColumnDefinition( final GuidedDecisionTableView.Presenter dtPresenter, final BaseColumn column, final Callback<String> afterGenerationCallback ) { if ( !builders.containsKey( column.getClass() ) ) { return; } final ColumnDefinitionBuilder builder = builders.get( column.getClass() ); builder.generateDefinition( dtPresenter, column, afterGenerationCallback ); }
ColumnDefinitionFactory { public void generateColumnDefinition( final GuidedDecisionTableView.Presenter dtPresenter, final BaseColumn column, final Callback<String> afterGenerationCallback ) { if ( !builders.containsKey( column.getClass() ) ) { return; } final ColumnDefinitionBuilder builder = builders.get( column.getClass() ); builder.generateDefinition( dtPresenter, column, afterGenerationCallback ); } }
ColumnDefinitionFactory { public void generateColumnDefinition( final GuidedDecisionTableView.Presenter dtPresenter, final BaseColumn column, final Callback<String> afterGenerationCallback ) { if ( !builders.containsKey( column.getClass() ) ) { return; } final ColumnDefinitionBuilder builder = builders.get( column.getClass() ); builder.generateDefinition( dtPresenter, column, afterGenerationCallback ); } @Inject  ColumnDefinitionFactory( final Instance<ColumnDefinitionBuilder> builders ); }
ColumnDefinitionFactory { public void generateColumnDefinition( final GuidedDecisionTableView.Presenter dtPresenter, final BaseColumn column, final Callback<String> afterGenerationCallback ) { if ( !builders.containsKey( column.getClass() ) ) { return; } final ColumnDefinitionBuilder builder = builders.get( column.getClass() ); builder.generateDefinition( dtPresenter, column, afterGenerationCallback ); } @Inject  ColumnDefinitionFactory( final Instance<ColumnDefinitionBuilder> builders ); void generateColumnDefinition( final GuidedDecisionTableView.Presenter dtPresenter,
                                          final BaseColumn column,
                                          final Callback<String> afterGenerationCallback ); }
ColumnDefinitionFactory { public void generateColumnDefinition( final GuidedDecisionTableView.Presenter dtPresenter, final BaseColumn column, final Callback<String> afterGenerationCallback ) { if ( !builders.containsKey( column.getClass() ) ) { return; } final ColumnDefinitionBuilder builder = builders.get( column.getClass() ); builder.generateDefinition( dtPresenter, column, afterGenerationCallback ); } @Inject  ColumnDefinitionFactory( final Instance<ColumnDefinitionBuilder> builders ); void generateColumnDefinition( final GuidedDecisionTableView.Presenter dtPresenter,
                                          final BaseColumn column,
                                          final Callback<String> afterGenerationCallback );  }