public abstract class XMLModelTestCase extends JXPathTestCase {
protected JXPathContext context;
public void setUp() {
if (context == null) {
DocumentContainer docCtr = createDocumentContainer();
context = createContext();
Variables vars = context.getVariables();
vars.declareVariable("document", docCtr.getValue());
vars.declareVariable("container", docCtr);
vars.declareVariable("element", context.getPointer("vendor/location/address/street").getNode());
}
}