use of org.teiid.metadata.AbstractMetadataRecord in project teiid by teiid.
the class MockConnector method createProcedureExecution.
@Override
public ProcedureExecution createProcedureExecution(Call procedure, ExecutionContext executionContext, RuntimeMetadata metadata, Object connection) throws TranslatorException {
Properties props = new Properties();
// $NON-NLS-1$ //$NON-NLS-2$
props.setProperty("customBehaviour", "SkipExecute");
AbstractMetadataRecord metaObject = procedure.getMetadataObject();
// $NON-NLS-1$
TestCase.assertEquals("AnyModel.ProcedureB", procedure.getProcedureName());
// $NON-NLS-1$
TestCase.assertEquals("PROC", metaObject.getNameInSource());
TestCase.assertEquals(props, metaObject.getProperties());
ProcedureExecution exec = Mockito.mock(ProcedureExecution.class);
Mockito.stub(exec.next()).toReturn(null);
return exec;
}
Aggregations