public class MockSessionFactory extends Object implements ProcessSessionFactory
Modifier and Type | Field and Description |
---|---|
private Set<MockProcessSession> |
createdSessions |
private Processor |
processor |
private SharedSessionState |
sharedState |
Constructor and Description |
---|
MockSessionFactory(SharedSessionState sharedState,
Processor processor) |
Modifier and Type | Method and Description |
---|---|
ProcessSession |
createSession() |
(package private) Set<MockProcessSession> |
getCreatedSessions() |
private final Processor processor
private final SharedSessionState sharedState
private final Set<MockProcessSession> createdSessions
MockSessionFactory(SharedSessionState sharedState, Processor processor)
public ProcessSession createSession()
createSession
in interface ProcessSessionFactory
Set<MockProcessSession> getCreatedSessions()
Copyright © 2016 Apache NiFi Project. All rights reserved.