Search in sources :

Example 1 with IssueStandardTopicPrioritiesOptions

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

Example 2 with IssueStandardTopicPrioritiesOptions

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

Example 3 with IssueStandardTopicPrioritiesOptions

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);
}
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

IssueStandardTopicPrioritiesOptions (easytests.core.options.IssueStandardTopicPrioritiesOptions)3 Test (org.junit.Test)3 SpringBootTest (org.springframework.boot.test.context.SpringBootTest)3 IssueStandardTopicPrioritiesOptionsInterface (easytests.core.options.IssueStandardTopicPrioritiesOptionsInterface)2 IssueStandardsOptions (easytests.core.options.IssueStandardsOptions)2 IssueStandardModelInterface (easytests.core.models.IssueStandardModelInterface)1 IssueStandardTopicPriorityModelInterface (easytests.core.models.IssueStandardTopicPriorityModelInterface)1 IssueStandardsOptionsInterface (easytests.core.options.IssueStandardsOptionsInterface)1