/** * Override configuration - BLOBS index is disabled. */ public void test_blobsSupport_noBlobsIndexConfiguration() { final Properties p = new Properties(getProperties()); p.setProperty(AbstractTripleStore.Options.BLOBS_THRESHOLD, Integer.toString(Integer.MAX_VALUE)); final AbstractTripleStore store = getStore(p); try { try { // Note: Defined to throw an exception if the index does not exist. store.getLexiconRelation().getBlobsIndex(); fail("Expecting: " + IllegalStateException.class); } catch (IllegalStateException ex) { if (log.isInfoEnabled()) log.info("Ignoring expected exception: " + ex); } assertEquals(store.getLexiconRelation().getLexiconConfiguration().getBlobsThreshold(), Integer.MAX_VALUE); } finally { store.__tearDownUnitTest(); } }
/** * Override configuration - BLOBS index is disabled. */ public void test_blobsSupport_noBlobsIndexConfiguration() { final Properties p = new Properties(getProperties()); p.setProperty(AbstractTripleStore.Options.BLOBS_THRESHOLD, Integer.toString(Integer.MAX_VALUE)); final AbstractTripleStore store = getStore(p); try { try { // Note: Defined to throw an exception if the index does not exist. store.getLexiconRelation().getBlobsIndex(); fail("Expecting: " + IllegalStateException.class); } catch (IllegalStateException ex) { if (log.isInfoEnabled()) log.info("Ignoring expected exception: " + ex); } assertEquals(store.getLexiconRelation().getLexiconConfiguration().getBlobsThreshold(), Integer.MAX_VALUE); } finally { store.__tearDownUnitTest(); } }
/** * Override configuration - BLOBS index is disabled. */ public void test_blobsSupport_noBlobsIndexConfiguration() { final Properties p = new Properties(getProperties()); p.setProperty(AbstractTripleStore.Options.BLOBS_THRESHOLD, Integer.toString(Integer.MAX_VALUE)); final AbstractTripleStore store = getStore(p); try { try { // Note: Defined to throw an exception if the index does not exist. store.getLexiconRelation().getBlobsIndex(); fail("Expecting: " + IllegalStateException.class); } catch (IllegalStateException ex) { if (log.isInfoEnabled()) log.info("Ignoring expected exception: " + ex); } assertEquals(store.getLexiconRelation().getLexiconConfiguration().getBlobsThreshold(), Integer.MAX_VALUE); } finally { store.__tearDownUnitTest(); } }