Search in sources :

Example 6 with BucketContentFactory

use of com.evolveum.midpoint.repo.common.activity.run.buckets.segmentation.BucketContentFactory in project midpoint by Evolveum.

the class TestBucketingStatic method test040OidBuckets.

/**
 * Tests the OID buckets strategy. Checks that it provides the correct bucket boundaries.
 */
@Test
public void test040OidBuckets() throws Exception {
    OperationResult result = createOperationResult();
    taskAdd(TASK_040, result);
    Task task = taskManager.getTaskPlain(TASK_040.oid, result);
    when();
    BucketContentFactory contentFactory = createContentFactory(getDistributionDefinition(task));
    then();
    assertBoundaries(contentFactory, singletonList("0123456789abcdef"));
}
Also used : Task(com.evolveum.midpoint.task.api.Task) BucketContentFactory(com.evolveum.midpoint.repo.common.activity.run.buckets.segmentation.BucketContentFactory) StringBucketContentFactory(com.evolveum.midpoint.repo.common.activity.run.buckets.segmentation.StringBucketContentFactory) OperationResult(com.evolveum.midpoint.schema.result.OperationResult) Test(org.testng.annotations.Test) AbstractRepoCommonTest(com.evolveum.midpoint.repo.common.AbstractRepoCommonTest)

Aggregations

AbstractRepoCommonTest (com.evolveum.midpoint.repo.common.AbstractRepoCommonTest)6 BucketContentFactory (com.evolveum.midpoint.repo.common.activity.run.buckets.segmentation.BucketContentFactory)6 StringBucketContentFactory (com.evolveum.midpoint.repo.common.activity.run.buckets.segmentation.StringBucketContentFactory)6 OperationResult (com.evolveum.midpoint.schema.result.OperationResult)6 Task (com.evolveum.midpoint.task.api.Task)6 Test (org.testng.annotations.Test)6 BucketFactory (com.evolveum.midpoint.repo.common.activity.run.buckets.segmentation.BucketFactory)3 PolyString (com.evolveum.midpoint.prism.polystring.PolyString)1