public class TestRunners extends Object
Constructor and Description |
---|
TestRunners() |
Modifier and Type | Method and Description |
---|---|
static TestRunner |
newTestRunner(Class<? extends Processor> processorClass)
Returns a
TestRunner for the given Processor class. |
static TestRunner |
newTestRunner(Class<? extends Processor> processorClass,
MockComponentLog logger)
Returns a
TestRunner for the given Processor class. |
static TestRunner |
newTestRunner(Class<? extends Processor> processorClass,
String name)
Returns a
TestRunner for the given Processor class. |
static TestRunner |
newTestRunner(Class<? extends Processor> processorClass,
String name,
MockComponentLog logger)
Returns a
TestRunner for the given Processor class. |
static TestRunner |
newTestRunner(Processor processor)
Returns a
TestRunner for the given Processor . |
static TestRunner |
newTestRunner(Processor processor,
KerberosContext kerberosContext)
Returns a
TestRunner for the given Processor which uses the given KerberosContext . |
static TestRunner |
newTestRunner(Processor processor,
MockComponentLog logger)
Returns a
TestRunner for the given Processor . |
static TestRunner |
newTestRunner(Processor processor,
String name)
Returns a
TestRunner for the given Processor . |
static TestRunner |
newTestRunner(Processor processor,
String name,
KerberosContext kerberosContext)
Returns a
TestRunner for the given Processor and KerberosContext . |
static TestRunner |
newTestRunner(Processor processor,
String name,
MockComponentLog logger)
Returns a
TestRunner for the given Processor . |
public static TestRunner newTestRunner(Processor processor)
TestRunner
for the given Processor
.
The processor name available from TestRunner.getProcessContext().getName()
will have the default name of processor.getClass().getName()
processor
- the Processor
under testTestRunner
public static TestRunner newTestRunner(Processor processor, KerberosContext kerberosContext)
TestRunner
for the given Processor
which uses the given KerberosContext
.processor
- the Processor
under testkerberosContext
- the KerberosContext
used during the testTestRunner
public static TestRunner newTestRunner(Processor processor, MockComponentLog logger)
TestRunner
for the given Processor
.
The processor name available from TestRunner.getProcessContext().getName()
will have the default name of processor.getClass().getName()
processor
- the Processor
under testlogger
- the ComponentLog
used for loggingTestRunner
public static TestRunner newTestRunner(Processor processor, String name)
TestRunner
for the given Processor
.
The processor name available from TestRunner.getProcessContext().getName()
will be the passed name.processor
- the Processor
under testname
- the name to give the Processor
TestRunner
public static TestRunner newTestRunner(Processor processor, String name, KerberosContext kerberosContext)
TestRunner
for the given Processor
and KerberosContext
.processor
- the Processor
under testname
- the name to give the Processor
kerberosContext
- the KerberosContext
used during the testTestRunner
public static TestRunner newTestRunner(Processor processor, String name, MockComponentLog logger)
TestRunner
for the given Processor
.
The processor name available from TestRunner.getProcessContext().getName()
will be the passed name.processor
- the Processor
under testname
- the name to give the Processor
logger
- the ComponentLog
used for loggingTestRunner
public static TestRunner newTestRunner(Class<? extends Processor> processorClass)
TestRunner
for the given Processor
class.
The processor name available from TestRunner.getProcessContext().getName()
will have the default name of processor.getClass().getName()
processorClass
- the Processor
classTestRunner
public static TestRunner newTestRunner(Class<? extends Processor> processorClass, MockComponentLog logger)
TestRunner
for the given Processor
class.
The processor name available from TestRunner.getProcessContext().getName()
will have the default name of processor.getClass().getName()
processorClass
- the Processor
classlogger
- the ComponentLog
used for loggingTestRunner
public static TestRunner newTestRunner(Class<? extends Processor> processorClass, String name)
TestRunner
for the given Processor
class.
The processor name available from TestRunner.getProcessContext().getName()
will have the default name of processor.getClass().getName()
processorClass
- the Processor
classname
- the name to give the Processor
TestRunner
public static TestRunner newTestRunner(Class<? extends Processor> processorClass, String name, MockComponentLog logger)
TestRunner
for the given Processor
class.
The processor name available from TestRunner.getProcessContext().getName()
will have the default name of processor.getClass().getName()
processorClass
- the Processor
classname
- the name to give the Processor
logger
- the ComponentLog
used for loggingTestRunner
Copyright © 2022 Apache NiFi Project. All rights reserved.