use of easytests.core.options.IssueStandardTopicPrioritiesOptionsInterface in project easy-tests by malinink.
the class IssueStandardTopicPrioritiesServiceTest method testDeleteListWithOptions.
@Test
public void testDeleteListWithOptions() throws Exception {
final IssueStandardTopicPrioritiesOptionsInterface topicPrioritiesOptions = Mockito.mock(IssueStandardTopicPrioritiesOptionsInterface.class);
final List<IssueStandardTopicPriorityModelInterface> topicPriorityModels = this.getTopicPriorityModels();
this.topicPrioritiesService.delete(topicPriorityModels, topicPrioritiesOptions);
for (IssueStandardTopicPriorityModelInterface topicPriorityModel : topicPriorityModels) {
verify(topicPrioritiesOptions).deleteWithRelations(topicPriorityModel);
}
}
use of easytests.core.options.IssueStandardTopicPrioritiesOptionsInterface in project easy-tests by malinink.
the class IssueStandardTopicPrioritiesServiceTest method testSaveWithOptions.
@Test
public void testSaveWithOptions() throws Exception {
final IssueStandardTopicPrioritiesOptionsInterface topicPrioritiesOptions = Mockito.mock(IssueStandardTopicPrioritiesOptionsInterface.class);
final IssueStandardTopicPriorityModelInterface topicPriorityModel = Models.createTopicPriorityModel(1, 2, false, 1);
this.topicPrioritiesService.save(topicPriorityModel, topicPrioritiesOptions);
verify(topicPrioritiesOptions).saveWithRelations(topicPriorityModel);
}
use of easytests.core.options.IssueStandardTopicPrioritiesOptionsInterface in project easy-tests by malinink.
the class IssueStandardTopicPrioritiesServiceTest method testSaveListWithOptions.
@Test
public void testSaveListWithOptions() throws Exception {
final IssueStandardTopicPrioritiesOptionsInterface topicPrioritiesOptions = Mockito.mock(IssueStandardTopicPrioritiesOptionsInterface.class);
final List<IssueStandardTopicPriorityModelInterface> topicPriorityModels = this.getTopicPriorityModels();
this.topicPrioritiesService.save(topicPriorityModels, topicPrioritiesOptions);
for (IssueStandardTopicPriorityModelInterface topicPriorityModel : topicPriorityModels) {
verify(topicPrioritiesOptions).saveWithRelations(topicPriorityModel);
}
}
use of easytests.core.options.IssueStandardTopicPrioritiesOptionsInterface 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