@Test @SuppressWarnings("unchecked") public void knownColumnType_ActionSetFieldCol52() { final BaseColumn column = new ActionSetFieldCol52(); final Callback<String> callback = mock(Callback.class); columnDefinitionFactory.generateColumnDefinition(dtPresenter, column, callback); verify(actionSetFieldCol52DefinitionBuilder, times(1)).generateDefinition(eq(dtPresenter), eq(column), any(Callback.class)); verify(callback, times(1)).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 );  }