use of com.evolveum.midpoint.xml.ns._public.common.common_3.ServiceType in project midpoint by Evolveum.
the class SqaleRepoSearchTest method test911SearchByOidLowerThan.
// Following OID tests use services in one cost center, only OID conditions are of interest.
@Test
public void test911SearchByOidLowerThan() throws SchemaException {
when("searching for objects with OID lower than");
OperationResult operationResult = createOperationResult();
SearchResultList<ServiceType> result = repositorySearchObjects(ServiceType.class, prismContext.queryFor(ServiceType.class).item(ServiceType.F_COST_CENTER).eq("OIDTEST").and().item(PrismConstants.T_ID).lt("00000000-1000-0000-0000-000000000000").build(), operationResult);
then("user with OID lower than specified are returned");
assertThatOperationResult(operationResult).isSuccess();
assertThat(result).extracting(o -> o.getOid()).containsExactlyInAnyOrder();
}
use of com.evolveum.midpoint.xml.ns._public.common.common_3.ServiceType in project midpoint by Evolveum.
the class RService method toJAXB.
@Override
public ServiceType toJAXB(PrismContext prismContext, Collection<SelectorOptions<GetOperationOptions>> options) throws DtoTranslationException {
ServiceType object = new ServiceType();
RService.copyToJAXB(this, object, prismContext, options);
RUtil.revive(object, prismContext);
return object;
}
use of com.evolveum.midpoint.xml.ns._public.common.common_3.ServiceType in project UVMS-ExchangeModule-APP by UnionVMS.
the class MapperTest method testEntityAndModelToEntity.
@Test
public void testEntityAndModelToEntity() throws ExchangeDaoException, ExchangeDaoMappingException {
Integer id = 1;
Service entity = MockData.getEntity(id);
ServiceType service = MockData.getModel(1);
CapabilityListType capabilityListType = MockData.getCapabilityList();
SettingListType settingListType = MockData.getSettingList();
// mockDaoToEntity();
Service result = mapper.toServiceEntity(entity, service, capabilityListType, settingListType, "TEST");
assertSame(entity.getName(), result.getName());
assertSame(entity.getServiceClassName(), result.getServiceClassName());
}
use of com.evolveum.midpoint.xml.ns._public.common.common_3.ServiceType in project midpoint by Evolveum.
the class SqaleRepoSearchTest method test915SearchByUpperCaseOidPrefixGoe.
@Test
public void test915SearchByUpperCaseOidPrefixGoe() throws SchemaException {
when("searching for objects with upper-case OID prefix greater than or equal");
OperationResult operationResult = createOperationResult();
SearchResultList<ServiceType> result = repositorySearchObjects(ServiceType.class, prismContext.queryFor(ServiceType.class).item(ServiceType.F_COST_CENTER).eq("OIDTEST").and().item(PrismConstants.T_ID).ge("FF").build(), operationResult);
then("user with OID greater than or equal to specified prefix ignoring case are returned");
assertThatOperationResult(operationResult).isSuccess();
assertThat(result).extracting(o -> o.getOid()).containsExactlyInAnyOrder("ff000000-0000-0000-0000-000000000000", "ffffffff-ffff-ffff-ffff-ffffffffffff");
}
Aggregations