use of easytests.core.options.IssueStandardQuestionTypeOptionsOptionsInterface in project easy-tests by malinink.
the class IssueStandardQuestionTypeOptionsServiceTest method testSaveModelsListWithOptions.
@Test
public void testSaveModelsListWithOptions() throws Exception {
final ArgumentCaptor<IssueStandardQuestionTypeOptionModelInterface> questionTypeOptionModelCaptor = ArgumentCaptor.forClass(IssueStandardQuestionTypeOptionModelInterface.class);
final List<IssueStandardQuestionTypeOptionModelInterface> questionTypeOptionModels = this.getQuestionTypeOptionFixturesModels();
final IssueStandardQuestionTypeOptionsOptionsInterface questionTypeOptionsOptions = Mockito.mock(IssueStandardQuestionTypeOptionsOptionsInterface.class);
this.questionTypeOptionsService.save(questionTypeOptionModels, questionTypeOptionsOptions);
this.assertServicesSet(questionTypeOptionsOptions, questionTypeOptionModels.size());
verify(questionTypeOptionsOptions, times(questionTypeOptionModels.size())).saveWithRelations(questionTypeOptionModelCaptor.capture());
this.questionTypeOptionsSupport.assertModelsListEquals(questionTypeOptionModels, questionTypeOptionModelCaptor.getAllValues());
verifyNoMoreInteractions(this.questionTypeOptionsMapper);
}
use of easytests.core.options.IssueStandardQuestionTypeOptionsOptionsInterface in project easy-tests by malinink.
the class IssueStandardQuestionTypeOptionsOptionsBuilderTest method testForAuth.
@Test
public void testForAuth() throws Exception {
final IssueStandardsOptionsInterface issueStandardsOptions = new IssueStandardsOptions();
given(this.issueStandardsOptionsBuilder.forAuth()).willReturn(issueStandardsOptions);
final IssueStandardQuestionTypeOptionsOptionsInterface questionTypeOptionsOptions = this.questionTypeOptionsOptionsBuilder.forAuth();
Assert.assertEquals(new IssueStandardQuestionTypeOptionsOptions().withIssueStandard(issueStandardsOptions), questionTypeOptionsOptions);
}
use of easytests.core.options.IssueStandardQuestionTypeOptionsOptionsInterface in project easy-tests by malinink.
the class IssueStandardQuestionTypeOptionsOptionsBuilderTest method testForDelete.
@Test
public void testForDelete() throws Exception {
final IssueStandardQuestionTypeOptionsOptionsInterface questionTypeOptionsOptions = this.questionTypeOptionsOptionsBuilder.forDelete();
Assert.assertEquals(new IssueStandardQuestionTypeOptionsOptions(), questionTypeOptionsOptions);
}
use of easytests.core.options.IssueStandardQuestionTypeOptionsOptionsInterface in project easy-tests by malinink.
the class IssueStandardQuestionTypeOptionsServiceTest method testSaveWithOptions.
@Test
public void testSaveWithOptions() throws Exception {
final IssueStandardQuestionTypeOptionsOptionsInterface questionTypeOptionsOptions = Mockito.mock(IssueStandardQuestionTypeOptionsOptionsInterface.class);
final IssueStandardQuestionTypeOptionModelInterface questionTypeOptionModel = Models.createQuestionTypeOptionModel(1, 2, 10, 20, 60, 2);
this.questionTypeOptionsService.save(questionTypeOptionModel, questionTypeOptionsOptions);
verify(questionTypeOptionsOptions).saveWithRelations(questionTypeOptionModel);
}
use of easytests.core.options.IssueStandardQuestionTypeOptionsOptionsInterface in project easy-tests by malinink.
the class IssueStandardQuestionTypeOptionsServiceTest method testDeleteWithOptions.
@Test
public void testDeleteWithOptions() throws Exception {
final IssueStandardQuestionTypeOptionsOptionsInterface questionTypeOptionsOptions = Mockito.mock(IssueStandardQuestionTypeOptionsOptionsInterface.class);
final IssueStandardQuestionTypeOptionModelInterface questionTypeOptionModel = Models.createQuestionTypeOptionModel(1, 1, 10, 20, 60, 1);
this.questionTypeOptionsService.delete(questionTypeOptionModel, questionTypeOptionsOptions);
verify(questionTypeOptionsOptions).deleteWithRelations(questionTypeOptionModel);
}
Aggregations