public final class NodeParserRule extends Object implements org.junit.rules.MethodRule
Xml
annotation.
Here is an example of how to use it:
public class MyTest {
@Rule
public NodeParserRule rule = new NodeParserRule();
@Test
@Xml("<somexml />")
public void aTestWithXml() {
NodeParser node = rule.getNode();
...
}
}
| Constructor and Description |
|---|
NodeParserRule() |
| Modifier and Type | Method and Description |
|---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement statement,
org.junit.runners.model.FrameworkMethod frameworkMethod,
Object o) |
NodeParser |
getNode() |
public NodeParser getNode()
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement statement,
org.junit.runners.model.FrameworkMethod frameworkMethod,
Object o)
apply in interface org.junit.rules.MethodRuleCopyright © 2018 Atlassian. All rights reserved.