use of easytests.core.options.IssueStandardTopicPrioritiesOptions in project easy-tests by malinink.
the class IssueStandardTopicPrioritiesOptionsBuilderTest method testForDelete.
@Test
public void testForDelete() throws Exception {
final IssueStandardTopicPrioritiesOptionsInterface topicPrioritiesOptions = this.topicPrioritiesOptionsBuilder.forDelete();
Assert.assertEquals(new IssueStandardTopicPrioritiesOptions(), topicPrioritiesOptions);
}
use of easytests.core.options.IssueStandardTopicPrioritiesOptions in project easy-tests by malinink.
the class IssueStandardTopicPrioritiesServiceTest method testFindWithOptions.
@Test
public void testFindWithOptions() throws Exception {
final Integer id = 1;
final Integer issueStandardId = 1;
final IssueStandardTopicPriorityModelInterface topicPriorityModel = Models.createTopicPriorityModel(id, 1, true, issueStandardId);
final IssueStandardModelInterface issueStandardModel = Models.createIssueStandardModel(issueStandardId, 300, 30, 1);
topicPriorityModel.setIssueStandard(issueStandardModel);
final IssueStandardTopicPriorityModelInterface foundedTopicPriorityModel = this.topicPrioritiesService.find(id, new IssueStandardTopicPrioritiesOptions().withIssueStandard(new IssueStandardsOptions()));
Assert.assertEquals(topicPriorityModel, foundedTopicPriorityModel);
Assert.assertEquals(issueStandardModel, foundedTopicPriorityModel.getIssueStandard());
}
use of easytests.core.options.IssueStandardTopicPrioritiesOptions in project easy-tests by malinink.
the class IssueStandardTopicPrioritiesOptionsBuilderTest method testForAuth.
@Test
public void testForAuth() throws Exception {
final IssueStandardsOptionsInterface issueStandardsOptions = new IssueStandardsOptions();
given(this.issueStandardsOptionsBuilder.forAuth()).willReturn(issueStandardsOptions);
final IssueStandardTopicPrioritiesOptionsInterface topicPrioritiesOptions = this.topicPrioritiesOptionsBuilder.forAuth();
Assert.assertEquals(new IssueStandardTopicPrioritiesOptions().withIssueStandard(issueStandardsOptions), topicPrioritiesOptions);
}
Aggregations