use of com.evolveum.midpoint.ninja.impl.RestService in project midpoint by Evolveum.
the class TestResourceRestAction method execute.
@Override
public void execute() {
RestService model = context.getRestService();
OperationResult result = model.testResource(options.getOid());
// todo print result
}
use of com.evolveum.midpoint.ninja.impl.RestService in project midpoint by Evolveum.
the class NinjaContextTest method setupModelClient.
@Test
public void setupModelClient() throws Exception {
NinjaContext ctx = new NinjaContext(null);
ctx.init(null);
RestService service = ctx.getRestService();
Holder object = new Holder();
Holder result = new Holder();
// service.get(UserType.COMPLEX_TYPE, SystemObjectsType.USER_ADMINISTRATOR.value(), null, object, result);
AssertJUnit.assertNotNull(object.value);
}
Aggregations