public class SetUpHql extends Object implements org.junit.rules.TestRule
Modifier and Type | Class and Description |
---|---|
static class |
SetUpHql.RunSetUpHqlStatement
A Statement that does the actual heavy lifting for SetUpHql
|
Constructor and Description |
---|
SetUpHql(TestHiveServer testingHiveServer,
HqlScript setUpHql)
Constructs a SetUpHql object
|
Modifier and Type | Method and Description |
---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement statement,
org.junit.runner.Description description)
Wraps a given Statement with a RunSetUpHqlStatement instance
When the nested Statement chain is evaluated, set up script is run, and then the wrapped Statement is evaluated
|
public SetUpHql(TestHiveServer testingHiveServer, HqlScript setUpHql)
testingHiveServer
- the TestHiveServer to run the set up onsetUpHql
- a TextResource containing with the set up script to runpublic org.junit.runners.model.Statement apply(org.junit.runners.model.Statement statement, org.junit.runner.Description description)
apply
in interface org.junit.rules.TestRule
statement
- the Statement to run the set up script before evaluation ofdescription
- ignoredCopyright © 2016. All rights reserved.