|
From: Mike P. <mi...@sy...> - 2013-10-02 12:28:12
|
It seems reasonable to me. Bryan?
From: Jeremy J Carroll <jj...@sy...<mailto:jj...@sy...>>
Date: Tuesday, October 1, 2013 4:19 PM
To: "Big...@li...<mailto:Big...@li...>" <Big...@li...<mailto:Big...@li...>>
Subject: [Bigdata-developers] use of -DtestClass=com.bigdata.rdf.sail.TestBigdataSailWithQuads and QuadsTestCase
A question/suggestion, primarily for Mike.
In the trac737 tests, in r7424, I subclassed from QuadsTestCase, which says:
Specify
* <code>-DtestClass=com.bigdata.rdf.sail.TestBigdataSailWithQuads</code> to
* run this test suite.
Because it is ever so slightly irritating to set the environment flag, I decided to hard code a default in my subclass with:
public AbstractBigdataSailTestCase getOurDelegate() {
if (getDelegate() == null) {
String testClass = System.getProperty("testClass");
if (testClass != null) {
return super.getOurDelegate();
}
setDelegate(new com.bigdata.rdf.sail.TestBigdataSailWithQuads());
}
return (AbstractBigdataSailTestCase) super.getDelegate();
}
I am wondering whether this method would be an improvement to the QuadsTestCase class, and should be pulled up?
Jeremy J Carroll
Principal Architect
Syapse, Inc.
|