mirror of https://github.com/apache/nifi.git
NIFI-1272: Added unit test to verify behavior
This commit is contained in:
parent
fa4c5314ca
commit
9ca0f95d06
|
@ -1105,6 +1105,20 @@ public class TestStandardProcessSession {
|
|||
assertEquals(ProvenanceEventType.CONTENT_MODIFIED, event.getEventType());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testGetWithCount() {
|
||||
for (int i = 0; i < 8; i++) {
|
||||
final FlowFileRecord flowFile = new StandardFlowFileRecord.Builder()
|
||||
.id(i)
|
||||
.addAttribute("uuid", "000000000000-0000-0000-0000-0000000" + i)
|
||||
.build();
|
||||
this.flowFileQueue.put(flowFile);
|
||||
}
|
||||
|
||||
final List<FlowFile> flowFiles = session.get(7);
|
||||
assertEquals(7, flowFiles.size());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testAttributesModifiedEmitted() throws IOException {
|
||||
final FlowFileRecord flowFile = new StandardFlowFileRecord.Builder()
|
||||
|
|
Loading…
Reference in New Issue