use of pro.taskana.ClassificationService in project taskana by Taskana.
the class QueryClassificationAccTest method testGetClassificationsWithCustom1Like.
@Test
public void testGetClassificationsWithCustom1Like() throws SQLException, ClassificationNotFoundException, NotAuthorizedException, InvalidArgumentException {
ClassificationService classificationService = taskanaEngine.getClassificationService();
List<ClassificationSummary> classifications = classificationService.createClassificationQuery().custom1Like("%RVNR%").domainIn("DOMAIN_A").typeIn("TASK").list();
assertNotNull(classifications);
assertEquals(12, classifications.size());
}
use of pro.taskana.ClassificationService in project taskana by Taskana.
the class ClassificationQueryAccTest method testFindClassificationsByDomainUnauthenticated.
@Test
public void testFindClassificationsByDomainUnauthenticated() throws SQLException, ClassificationNotFoundException, NotAuthorizedException, InvalidArgumentException {
ClassificationService classificationService = taskanaEngine.getClassificationService();
List<ClassificationSummary> classificationSummaryList = classificationService.createClassificationQuery().domainIn("DOMAIN_A").list();
assertNotNull(classificationSummaryList);
assertEquals(17, classificationSummaryList.size());
}
use of pro.taskana.ClassificationService in project taskana by Taskana.
the class ClassificationQueryAccTest method testFindClassificationsByDomainBusinessAdmin.
@WithAccessId(userName = "businessadmin")
@Test
public void testFindClassificationsByDomainBusinessAdmin() throws SQLException, ClassificationNotFoundException, NotAuthorizedException, InvalidArgumentException {
ClassificationService classificationService = taskanaEngine.getClassificationService();
List<ClassificationSummary> classificationSummaryList = classificationService.createClassificationQuery().domainIn("DOMAIN_A").list();
assertNotNull(classificationSummaryList);
assertEquals(17, classificationSummaryList.size());
}
use of pro.taskana.ClassificationService in project taskana by Taskana.
the class GetClassificationAccTest method testGetOneClassificationForDomainAndGetClassificationFromRootDomain.
@Test
public void testGetOneClassificationForDomainAndGetClassificationFromRootDomain() throws ClassificationNotFoundException {
ClassificationService classificationService = taskanaEngine.getClassificationService();
Classification classification = classificationService.getClassification("L10000", "DOMAIN_B");
Assert.assertNotNull(classification);
Assert.assertEquals("", classification.getDomain());
Assert.assertEquals(999L, classification.getPriority());
}
use of pro.taskana.ClassificationService in project taskana by Taskana.
the class GetClassificationAccTest method testGetOneClassificationForDomain.
@Test
public void testGetOneClassificationForDomain() throws ClassificationNotFoundException {
ClassificationService classificationService = taskanaEngine.getClassificationService();
Classification classification = classificationService.getClassification("T6310", "DOMAIN_A");
Assert.assertNotNull(classification);
}
Aggregations