use of easytests.core.options.IssueStandardQuestionTypeOptionsOptions 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.IssueStandardQuestionTypeOptionsOptions 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.IssueStandardQuestionTypeOptionsOptions in project easy-tests by malinink.
the class IssueStandardQuestionTypeOptionsServiceTest method testFindWithOptions.
@Test
public void testFindWithOptions() throws Exception {
final Integer id = 1;
final Integer issueStandardId = 1;
final IssueStandardQuestionTypeOptionModelInterface questionTypeOptionModel = Models.createQuestionTypeOptionModel(id, 1, 1, null, null, issueStandardId);
final IssueStandardModelInterface issueStandardModel = Models.createIssueStandardModel(issueStandardId, 300, 30, 1);
questionTypeOptionModel.setIssueStandard(issueStandardModel);
final IssueStandardQuestionTypeOptionModelInterface foundedQuestionTypeOptionModel = this.questionTypeOptionsService.find(id, new IssueStandardQuestionTypeOptionsOptions().withIssueStandard(new IssueStandardsOptions()));
Assert.assertEquals(questionTypeOptionModel, foundedQuestionTypeOptionModel);
Assert.assertEquals(issueStandardModel, foundedQuestionTypeOptionModel.getIssueStandard());
}
Aggregations