Search in sources :

Example 1 with IssueStandardsOptionsInterface

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

Example 2 with IssueStandardsOptionsInterface

use of easytests.core.options.IssueStandardsOptionsInterface in project easy-tests by malinink.

the class IssueStandardsServiceTest method testDeleteListWithOptions.

@Test
public void testDeleteListWithOptions() throws Exception {
    final IssueStandardsOptionsInterface issueStandardsOptions = Mockito.mock(IssueStandardsOptionsInterface.class);
    final List<IssueStandardModelInterface> issueStandardModels = this.getIssueStandardModels();
    this.issueStandardsService.delete(issueStandardModels, issueStandardsOptions);
    for (IssueStandardModelInterface issueStandardModel : issueStandardModels) {
        verify(issueStandardsOptions).deleteWithRelations(issueStandardModel);
    }
}
Also used : IssueStandardsOptionsInterface(easytests.core.options.IssueStandardsOptionsInterface)

Example 3 with IssueStandardsOptionsInterface

use of easytests.core.options.IssueStandardsOptionsInterface in project easy-tests by malinink.

the class IssueStandardsServiceTest method testSaveWithOptions.

@Test
public void testSaveWithOptions() throws Exception {
    final IssueStandardModelInterface issueStandardModel = Models.createIssueStandardModel(null, 1200, 20, 5);
    final IssueStandardsOptionsInterface issueStandardsOptions = Mockito.mock(IssueStandardsOptionsInterface.class);
    this.issueStandardsService.save(issueStandardModel, issueStandardsOptions);
    verify(issueStandardsOptions).saveWithRelations(issueStandardModel);
}
Also used : IssueStandardsOptionsInterface(easytests.core.options.IssueStandardsOptionsInterface)

Example 4 with IssueStandardsOptionsInterface

use of easytests.core.options.IssueStandardsOptionsInterface in project easy-tests by malinink.

the class IssueStandardsServiceTest method testDeleteWithOptions.

@Test
public void testDeleteWithOptions() throws Exception {
    final IssueStandardModelInterface issueStandardModel = Models.createIssueStandardModel(1, 1200, 20, 5);
    final IssueStandardsOptionsInterface issueStandardsOptions = Mockito.mock(IssueStandardsOptionsInterface.class);
    this.issueStandardsService.delete(issueStandardModel, issueStandardsOptions);
    verify(issueStandardsOptions).deleteWithRelations(issueStandardModel);
}
Also used : IssueStandardsOptionsInterface(easytests.core.options.IssueStandardsOptionsInterface)

Example 5 with IssueStandardsOptionsInterface

use of easytests.core.options.IssueStandardsOptionsInterface in project easy-tests by malinink.

the class IssueStandardsServiceTest method testSaveListWithOptions.

@Test
public void testSaveListWithOptions() throws Exception {
    final IssueStandardsOptionsInterface issueStandardsOptions = Mockito.mock(IssueStandardsOptionsInterface.class);
    final List<IssueStandardModelInterface> issueStandardModels = this.getIssueStandardModels();
    this.issueStandardsService.save(issueStandardModels, issueStandardsOptions);
    for (IssueStandardModelInterface issueStandardModel : issueStandardModels) {
        verify(issueStandardsOptions).saveWithRelations(issueStandardModel);
    }
}
Also used : IssueStandardsOptionsInterface(easytests.core.options.IssueStandardsOptionsInterface)

Aggregations

IssueStandardsOptionsInterface (easytests.core.options.IssueStandardsOptionsInterface)9 IssueStandardsOptions (easytests.core.options.IssueStandardsOptions)2 Test (org.junit.Test)2 SpringBootTest (org.springframework.boot.test.context.SpringBootTest)2 IssueStandardQuestionTypeOptionsOptions (easytests.core.options.IssueStandardQuestionTypeOptionsOptions)1 IssueStandardQuestionTypeOptionsOptionsInterface (easytests.core.options.IssueStandardQuestionTypeOptionsOptionsInterface)1 IssueStandardTopicPrioritiesOptions (easytests.core.options.IssueStandardTopicPrioritiesOptions)1 IssueStandardTopicPrioritiesOptionsInterface (easytests.core.options.IssueStandardTopicPrioritiesOptionsInterface)1