public class JUnit4DBInjectionRule extends Object implements org.junit.rules.MethodRule
Rule to inject DB related handlers DataSource
and MongoClient from the annotations .database.annotations.SqlDB and Mongo marked on the test class
and its superclasses.
Example:
\@Rule
public JUnit4DBInjectionRule rule = new JUnit4DBInjectionRule();
| 构造器和说明 |
|---|
JUnit4DBInjectionRule() |
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base,
org.junit.runners.model.FrameworkMethod method,
Object target)
apply 在接口中 org.junit.rules.MethodRuleCopyright © 2016. All rights reserved.