From: <tho...@us...> - 2010-10-18 17:09:12
|
Revision: 3811 http://bigdata.svn.sourceforge.net/bigdata/?rev=3811&view=rev Author: thompsonbry Date: 2010-10-18 17:09:06 +0000 (Mon, 18 Oct 2010) Log Message: ----------- Changed logger name to class name. Modified to wrap and throw Exception in run(). Modified Paths: -------------- branches/QUADS_QUERY_BRANCH/bigdata-sails/src/test/com/bigdata/rdf/sail/DavidsTestBOps.java Modified: branches/QUADS_QUERY_BRANCH/bigdata-sails/src/test/com/bigdata/rdf/sail/DavidsTestBOps.java =================================================================== --- branches/QUADS_QUERY_BRANCH/bigdata-sails/src/test/com/bigdata/rdf/sail/DavidsTestBOps.java 2010-10-18 16:56:34 UTC (rev 3810) +++ branches/QUADS_QUERY_BRANCH/bigdata-sails/src/test/com/bigdata/rdf/sail/DavidsTestBOps.java 2010-10-18 17:09:06 UTC (rev 3811) @@ -57,7 +57,7 @@ */ public class DavidsTestBOps extends ProxyBigdataSailTestCase { - protected static final Logger log = Logger.getLogger(TestBOps.class); + protected static final Logger log = Logger.getLogger(DavidsTestBOps.class); @Override public Properties getProperties() { @@ -91,6 +91,10 @@ throws Exception { BigdataSail sail = getTheSail () ; + if(!((BigdataSail)sail).isQuads()) { + log.info("This test requires quads."); + return; + } final ValueFactory vf = sail.getValueFactory(); RepositoryConnection cxn = getRepositoryConnection ( sail ) ; @@ -139,8 +143,11 @@ finally { try { if ( null != rc ) rc.close () ; } - catch ( Exception e ) {} - if ( null != sail ) sail.__tearDownUnitTest () ; + catch ( Exception e ) { + throw new RuntimeException(e); + } finally { + if ( null != sail ) sail.__tearDownUnitTest () ; + } } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |