use of com.evolveum.midpoint.repo.sqale.qmodel.connector.MConnectorHost in project midpoint by Evolveum.
the class SqaleRepoAddDeleteObjectTest method test814ConnectorHost.
@Test
public void test814ConnectorHost() throws Exception {
OperationResult result = createOperationResult();
given("connector host");
String objectName = "conn-host" + getTestNumber();
ConnectorHostType connectorHost = new ConnectorHostType(prismContext).name(objectName).hostname("hostname").port("port");
when("adding it to the repository");
repositoryService.addObject(connectorHost.asPrismObject(), null, result);
then("it is stored and relevant attributes are in columns");
assertThatOperationResult(result).isSuccess();
MConnectorHost row = selectObjectByOid(QConnectorHost.class, connectorHost.getOid());
assertThat(row.hostname).isEqualTo("hostname");
assertThat(row.port).isEqualTo("port");
}
Aggregations