|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object TestCase org.pentaho.test.platform.engine.core.GenericPentahoTest org.pentaho.test.platform.engine.core.BaseTest
public abstract class BaseTest
A Base class for platform integration tests. Uses Spring to populate required PentahoSystem dependencies
(admin plugins, system listeners, object factory, system settings, etc)
and uses the StandaloneSpringPentahoObjectFactory
as the object factory implementation. Also
inits the system.
Field Summary |
---|
Fields inherited from interface org.pentaho.platform.api.engine.ILogger |
---|
ACTIVITY_LOG, DEBUG, ERROR, FATAL, INFO, INSTANCE_LOG, SESSION_LOG, SOLUTION_LOG, TRACE, UNKNOWN, WARN |
Constructor Summary | |
---|---|
BaseTest()
|
|
BaseTest(String arg0)
|
Method Summary | |
---|---|
void |
actionComplete(IRuntimeContext runtimeContext)
Invoked when a Component execution has completed |
void |
debug(String message)
Log a message object with the DEBUG Level. |
void |
debug(String message,
Throwable error)
Log a message with the DEBUG level including the stack
trace of the Throwable error passed as parameter. |
void |
dispose()
|
void |
error(String message)
Log a message object with the ERROR Level. |
void |
error(String message,
Throwable error)
Log a message with the ERROR level including the stack
trace of the Throwable error passed as parameter. |
void |
fatal(String message)
Log a message object with the FATAL Level. |
void |
fatal(String message,
Throwable error)
Log a message with the FATAL level including the stack
trace of the Throwable error passed as parameter. |
String |
getBaseUrl()
|
int |
getLoggingLevel()
Return the logging level for this Logger. |
List<String> |
getMessages()
|
IOutputHandler |
getOutputHandler(IContentItem contentItem)
|
IOutputHandler |
getOutputHandler(OutputStream stream)
|
void |
info(String message)
Log a message object with the INFO Level. |
void |
info(String message,
Throwable error)
Log a message with the INFO level including the stack trace
of the Throwable error passed as parameter. |
IRuntimeContext |
run(ISolutionEngine solutionEngine,
String solutionId,
String path,
String actionName,
String instanceId,
boolean persisted,
IParameterProvider parameterProvider,
IOutputHandler outputHandler)
|
IRuntimeContext |
run(String solutionId,
String path,
String actionName)
|
IRuntimeContext |
run(String solutionId,
String path,
String actionName,
IParameterProvider parameterProvider)
|
IRuntimeContext |
run(String solutionId,
String path,
String actionName,
IParameterProvider parameterProvider,
String testName,
String fileExtension)
|
IRuntimeContext |
run(String solutionId,
String path,
String actionName,
String instanceId,
boolean persisted,
IParameterProvider parameterProvider,
IOutputHandler outputHandler,
IPentahoSession session)
|
IPentahoSession |
sessionStartup(IPentahoSession session)
|
void |
setLoggingLevel(int logLevel)
Set the logging level for this Logger. |
void |
setUp()
|
static void |
shutdown()
|
void |
tearDown()
|
void |
trace(String message)
Log a message object with the TRACE Level. |
void |
trace(String message,
Throwable error)
Log a message with the TRACE level including the stack
trace of the Throwable error passed as parameter. |
void |
warn(String message)
Log a message object with the WARN Level. |
void |
warn(String message,
Throwable error)
Log a message with the WARN level including the stack trace
of the Throwable error passed as parameter. |
Methods inherited from class org.pentaho.test.platform.engine.core.GenericPentahoTest |
---|
compare, getSolutionEngine, getSolutionPath |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BaseTest(String arg0)
public BaseTest()
Method Detail |
---|
public List<String> getMessages()
public String getBaseUrl()
public void setUp()
public void actionComplete(IRuntimeContext runtimeContext)
IActionCompleteListener
actionComplete
in interface IActionCompleteListener
runtimeContext
- the runtime context associated with this actionpublic void tearDown()
public static void shutdown()
public void dispose()
public IRuntimeContext run(String solutionId, String path, String actionName)
public IRuntimeContext run(String solutionId, String path, String actionName, IParameterProvider parameterProvider)
public IOutputHandler getOutputHandler(OutputStream stream)
public IOutputHandler getOutputHandler(IContentItem contentItem)
public IPentahoSession sessionStartup(IPentahoSession session)
public IRuntimeContext run(String solutionId, String path, String actionName, IParameterProvider parameterProvider, String testName, String fileExtension)
public IRuntimeContext run(String solutionId, String path, String actionName, String instanceId, boolean persisted, IParameterProvider parameterProvider, IOutputHandler outputHandler, IPentahoSession session)
public IRuntimeContext run(ISolutionEngine solutionEngine, String solutionId, String path, String actionName, String instanceId, boolean persisted, IParameterProvider parameterProvider, IOutputHandler outputHandler)
public int getLoggingLevel()
ILogger
getLoggingLevel
in interface ILogger
public void setLoggingLevel(int logLevel)
ILogger
Valid logging levels are TRACE
, DEBUG
,
INFO
, WARN
, ERROR
, and
FATAL
.
setLoggingLevel
in interface ILogger
public void trace(String message)
ILogger
TRACE
Level.
trace
in interface ILogger
message
- the message object to log.public void debug(String message)
ILogger
DEBUG
Level.
debug
in interface ILogger
message
- the message object to log.public void info(String message)
ILogger
INFO
Level.
info
in interface ILogger
message
- the message object to log.public void warn(String message)
ILogger
WARN
Level.
warn
in interface ILogger
message
- the message object to log.public void error(String message)
ILogger
ERROR
Level.
error
in interface ILogger
message
- the message object to log.public void fatal(String message)
ILogger
FATAL
Level.
fatal
in interface ILogger
message
- the message object to log.public void trace(String message, Throwable error)
ILogger
TRACE
level including the stack
trace of the Throwable error passed as parameter.
trace
in interface ILogger
message
- the message object to log.error
- the exception to log, including its stack trace.public void debug(String message, Throwable error)
ILogger
DEBUG
level including the stack
trace of the Throwable error passed as parameter.
debug
in interface ILogger
message
- the message object to log.error
- the exception to log, including its stack trace.public void info(String message, Throwable error)
ILogger
INFO
level including the stack trace
of the Throwable error passed as parameter.
info
in interface ILogger
message
- the message object to log.error
- the exception to log, including its stack trace.public void warn(String message, Throwable error)
ILogger
WARN
level including the stack trace
of the Throwable error passed as parameter.
warn
in interface ILogger
message
- the message object to log.error
- the exception to log, including its stack trace.public void error(String message, Throwable error)
ILogger
ERROR
level including the stack
trace of the Throwable error passed as parameter.
error
in interface ILogger
message
- the message object to log.error
- the exception to log, including its stack trace.public void fatal(String message, Throwable error)
ILogger
FATAL
level including the stack
trace of the Throwable error passed as parameter.
fatal
in interface ILogger
message
- the message object to log.error
- the exception to log, including its stack trace.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |