Search in sources :

Example 6 with IssueStandardTopicPrioritiesOptionsInterface

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);
    }
}
Also used : IssueStandardTopicPriorityModelInterface(easytests.core.models.IssueStandardTopicPriorityModelInterface) IssueStandardTopicPrioritiesOptionsInterface(easytests.core.options.IssueStandardTopicPrioritiesOptionsInterface) Test(org.junit.Test) SpringBootTest(org.springframework.boot.test.context.SpringBootTest)

Example 7 with IssueStandardTopicPrioritiesOptionsInterface

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);
}
Also used : IssueStandardTopicPriorityModelInterface(easytests.core.models.IssueStandardTopicPriorityModelInterface) IssueStandardTopicPrioritiesOptionsInterface(easytests.core.options.IssueStandardTopicPrioritiesOptionsInterface) Test(org.junit.Test) SpringBootTest(org.springframework.boot.test.context.SpringBootTest)

Example 8 with IssueStandardTopicPrioritiesOptionsInterface

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);
    }
}
Also used : IssueStandardTopicPriorityModelInterface(easytests.core.models.IssueStandardTopicPriorityModelInterface) IssueStandardTopicPrioritiesOptionsInterface(easytests.core.options.IssueStandardTopicPrioritiesOptionsInterface) Test(org.junit.Test) SpringBootTest(org.springframework.boot.test.context.SpringBootTest)

Example 9 with IssueStandardTopicPrioritiesOptionsInterface

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);
}
Also used : IssueStandardsOptionsInterface(easytests.core.options.IssueStandardsOptionsInterface) IssueStandardTopicPrioritiesOptionsInterface(easytests.core.options.IssueStandardTopicPrioritiesOptionsInterface) IssueStandardTopicPrioritiesOptions(easytests.core.options.IssueStandardTopicPrioritiesOptions) IssueStandardsOptions(easytests.core.options.IssueStandardsOptions) SpringBootTest(org.springframework.boot.test.context.SpringBootTest) Test(org.junit.Test)

Aggregations

IssueStandardTopicPrioritiesOptionsInterface (easytests.core.options.IssueStandardTopicPrioritiesOptionsInterface)9 Test (org.junit.Test)9 SpringBootTest (org.springframework.boot.test.context.SpringBootTest)9 IssueStandardTopicPriorityModelInterface (easytests.core.models.IssueStandardTopicPriorityModelInterface)7 IssueStandardTopicPriorityEntity (easytests.core.entities.IssueStandardTopicPriorityEntity)3 IssueStandardTopicPrioritiesOptions (easytests.core.options.IssueStandardTopicPrioritiesOptions)2 IssueStandardsOptions (easytests.core.options.IssueStandardsOptions)1 IssueStandardsOptionsInterface (easytests.core.options.IssueStandardsOptionsInterface)1 ArrayList (java.util.ArrayList)1