use of org.teiid.client.SourceWarning in project teiid by teiid.
the class TestDataTierManager method testDataTierTupleSourceWarnings.
@Test
public void testDataTierTupleSourceWarnings() throws Exception {
DataTierTupleSource info = helpSetup(1);
connectorManager.addWarning = true;
assertEquals(10, pullTuples(info, 10));
assertNotNull(workItem.getConnectorRequest(info.getAtomicRequestMessage().getAtomicRequestID()));
assertNull(info.nextTuple());
List<Exception> warnings = context.getAndClearWarnings();
assertEquals(1, warnings.size());
SourceWarning warning = (SourceWarning) warnings.get(0);
assertFalse(warning.isPartialResultsError());
info.closeSource();
assertNull(workItem.getConnectorRequest(info.getAtomicRequestMessage().getAtomicRequestID()));
}
Aggregations