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