use of org.apache.nifi.controller.repository.claim.StandardResourceClaim in project nifi by apache.
the class TestFileSystemRepository method testReadWithNoContent.
@Test(expected = ContentNotFoundException.class)
public void testReadWithNoContent() throws IOException {
final ContentClaim claim = new StandardContentClaim(new StandardResourceClaim(claimManager, "container1", "section 1", "1", false), 0L);
final InputStream in = repository.read(claim);
in.close();
}
use of org.apache.nifi.controller.repository.claim.StandardResourceClaim in project nifi by apache.
the class TestFileSystemRepository method testSizeWithNoContent.
@Test(expected = ContentNotFoundException.class)
public void testSizeWithNoContent() throws IOException {
final ContentClaim claim = new StandardContentClaim(new StandardResourceClaim(claimManager, "container1", "section 1", "1", false), 0L);
assertEquals(0L, repository.size(claim));
}
Aggregations