@Test public void conditionIsPartOfAPattern() { final AtomicBoolean calledBack = new AtomicBoolean( false ); setupPatternAndCondition(); builder.generateDefinition( dtPresenter, model.getExpandedColumns().get( 3 ), ( String definition ) -> { calledBack.set( true ); assertEquals( "$p : Person( name == \"x\" )", definition ); } ); assertTrue( calledBack.get() ); }
@Override public void generateDefinition( final GuidedDecisionTableView.Presenter dtPresenter, final BaseColumn column, final Callback<String> afterGenerationCallback ) { if ( !( column instanceof ConditionCol52 ) ) { return; } generateConditionColumn( dtPresenter, column, afterGenerationCallback ); }
ConditionCol52DefinitionBuilder extends BaseConditionColumnDefinitionBuilder { @Override public void generateDefinition( final GuidedDecisionTableView.Presenter dtPresenter, final BaseColumn column, final Callback<String> afterGenerationCallback ) { if ( !( column instanceof ConditionCol52 ) ) { return; } generateConditionColumn( dtPresenter, column, afterGenerationCallback ); } }
ConditionCol52DefinitionBuilder extends BaseConditionColumnDefinitionBuilder { @Override public void generateDefinition( final GuidedDecisionTableView.Presenter dtPresenter, final BaseColumn column, final Callback<String> afterGenerationCallback ) { if ( !( column instanceof ConditionCol52 ) ) { return; } generateConditionColumn( dtPresenter, column, afterGenerationCallback ); } @Inject  ConditionCol52DefinitionBuilder( final Caller<GuidedDecisionTableEditorService> service ); }
ConditionCol52DefinitionBuilder extends BaseConditionColumnDefinitionBuilder { @Override public void generateDefinition( final GuidedDecisionTableView.Presenter dtPresenter, final BaseColumn column, final Callback<String> afterGenerationCallback ) { if ( !( column instanceof ConditionCol52 ) ) { return; } generateConditionColumn( dtPresenter, column, afterGenerationCallback ); } @Inject  ConditionCol52DefinitionBuilder( final Caller<GuidedDecisionTableEditorService> service ); @Override Class getSupportedColumnType(); @Override void generateDefinition( final GuidedDecisionTableView.Presenter dtPresenter,
                                    final BaseColumn column,
                                    final Callback<String> afterGenerationCallback ); }
ConditionCol52DefinitionBuilder extends BaseConditionColumnDefinitionBuilder { @Override public void generateDefinition( final GuidedDecisionTableView.Presenter dtPresenter, final BaseColumn column, final Callback<String> afterGenerationCallback ) { if ( !( column instanceof ConditionCol52 ) ) { return; } generateConditionColumn( dtPresenter, column, afterGenerationCallback ); } @Inject  ConditionCol52DefinitionBuilder( final Caller<GuidedDecisionTableEditorService> service ); @Override Class getSupportedColumnType(); @Override void generateDefinition( final GuidedDecisionTableView.Presenter dtPresenter,
                                    final BaseColumn column,
                                    final Callback<String> afterGenerationCallback );  }