@Test(dataProvider = "maximumAttemptsAgendaProvider") public void testConfigureMaximumAttempts(Agenda agenda, final Integer EXPECTED_MAXIMUM) { agendaProgressBuilder.configureMaximumAttempts(agenda); Assert.assertEquals(agendaProgressBuilder.build().getMaximumAttempts(), EXPECTED_MAXIMUM); }
protected void configureMaximumAttempts(Agenda agenda) { this.object.setMaximumAttempts(AgendaProgress.DEFAULT_MAX_ATTEMPTS); if(agenda != null && agenda.getParams() != null) { this.object.setMaximumAttempts( agenda.getParams().getInt(GeneralParamKey.maximumAttempts, AgendaProgress.DEFAULT_MAX_ATTEMPTS)); } }
AgendaProgressBuilder { protected void configureMaximumAttempts(Agenda agenda) { this.object.setMaximumAttempts(AgendaProgress.DEFAULT_MAX_ATTEMPTS); if(agenda != null && agenda.getParams() != null) { this.object.setMaximumAttempts( agenda.getParams().getInt(GeneralParamKey.maximumAttempts, AgendaProgress.DEFAULT_MAX_ATTEMPTS)); } } }
AgendaProgressBuilder { protected void configureMaximumAttempts(Agenda agenda) { this.object.setMaximumAttempts(AgendaProgress.DEFAULT_MAX_ATTEMPTS); if(agenda != null && agenda.getParams() != null) { this.object.setMaximumAttempts( agenda.getParams().getInt(GeneralParamKey.maximumAttempts, AgendaProgress.DEFAULT_MAX_ATTEMPTS)); } } AgendaProgressBuilder(AgendaProgress object);  AgendaProgressBuilder(); }
AgendaProgressBuilder { protected void configureMaximumAttempts(Agenda agenda) { this.object.setMaximumAttempts(AgendaProgress.DEFAULT_MAX_ATTEMPTS); if(agenda != null && agenda.getParams() != null) { this.object.setMaximumAttempts( agenda.getParams().getInt(GeneralParamKey.maximumAttempts, AgendaProgress.DEFAULT_MAX_ATTEMPTS)); } } AgendaProgressBuilder(AgendaProgress object);  AgendaProgressBuilder(); AgendaProgressBuilder withAgendaFields(Agenda agenda); AgendaProgressBuilder withAgendaId(String agendaId); AgendaProgressBuilder withLinkId(String value); AgendaProgressBuilder withExternalId(String value); AgendaProgressBuilder withTitle(String value); AgendaProgressBuilder withProcessingState(ProcessingState value); AgendaProgressBuilder withProcessingStateMessage(String value); AgendaProgress build(); }
AgendaProgressBuilder { protected void configureMaximumAttempts(Agenda agenda) { this.object.setMaximumAttempts(AgendaProgress.DEFAULT_MAX_ATTEMPTS); if(agenda != null && agenda.getParams() != null) { this.object.setMaximumAttempts( agenda.getParams().getInt(GeneralParamKey.maximumAttempts, AgendaProgress.DEFAULT_MAX_ATTEMPTS)); } } AgendaProgressBuilder(AgendaProgress object);  AgendaProgressBuilder(); AgendaProgressBuilder withAgendaFields(Agenda agenda); AgendaProgressBuilder withAgendaId(String agendaId); AgendaProgressBuilder withLinkId(String value); AgendaProgressBuilder withExternalId(String value); AgendaProgressBuilder withTitle(String value); AgendaProgressBuilder withProcessingState(ProcessingState value); AgendaProgressBuilder withProcessingStateMessage(String value); AgendaProgress build();  }