public static class TearDownHql.RunTearDownHqlStatement
extends org.junit.runners.model.Statement
Constructor and Description |
---|
RunTearDownHqlStatement(org.junit.runners.model.Statement wrappedStatement,
TestHiveServer testingHiveServer,
HqlScript tearDownHql)
Constructs a RunTearDownHqlStatement
When evaluated this Statement evaluates a wrapped statement and then runs an hql script as testing tear down
|
Modifier and Type | Method and Description |
---|---|
void |
evaluate()
Evaluates the wrapped statement, followed by executing the tear down script
The script will always be executed even if a test fails or an error has been thrown
|
public RunTearDownHqlStatement(org.junit.runners.model.Statement wrappedStatement, TestHiveServer testingHiveServer, HqlScript tearDownHql)
wrappedStatement
- the Statement to execute the tear down script after evaluation oftestingHiveServer
- the TestHiveServer to run the tear down script ontearDownHql
- a TextResource containing the hql script to perform tear down withpublic void evaluate() throws Throwable
evaluate
in class org.junit.runners.model.Statement
Throwable
- as required by the Statement classCopyright © 2016. All rights reserved.