Search in sources :

Example 1 with DefaultQueryResult

use of com.opentext.ia.sdk.client.impl.DefaultQueryResult in project infoarchive-sip-sdk by Enterprise-Content-Management.

the class WhenWorkingWithQueryResult method shouldCloseStreamAndDependentResource.

@Test
void shouldCloseStreamAndDependentResource() throws IOException {
    // NOPMD by design
    DefaultQueryResult result = newQueryResult();
    result.close();
    verify(stream).close();
    verify(dependentResource).close();
}
Also used : DefaultQueryResult(com.opentext.ia.sdk.client.impl.DefaultQueryResult) Test(org.junit.jupiter.api.Test)

Aggregations

DefaultQueryResult (com.opentext.ia.sdk.client.impl.DefaultQueryResult)1 Test (org.junit.jupiter.api.Test)1