/** * Override configuration - BLOBS index uses a non-default threashold. */ public void test_blobsSupport_nonDefaultBlobsIndexThresholdConfiguration() { final Properties p = new Properties(getProperties()); final int overrideThreshold = Integer.valueOf(AbstractTripleStore.Options.DEFAULT_BLOBS_THRESHOLD) * 2; p.setProperty(AbstractTripleStore.Options.BLOBS_THRESHOLD, Integer.toString(overrideThreshold)); final AbstractTripleStore store = getStore(p); try { final IIndex blobsIndex = store.getLexiconRelation().getBlobsIndex(); assertNotNull(blobsIndex); assertEquals(store.getLexiconRelation().getLexiconConfiguration().getBlobsThreshold(), overrideThreshold); } 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(); } }
/** * Default configuration - verify that BLOBS index exists. */ public void test_blobsSupport_defaultConfiguration() { final AbstractTripleStore store = getStore(); try { final IIndex blobsIndex = store.getLexiconRelation().getBlobsIndex(); assertNotNull(blobsIndex); assertEquals(store.getLexiconRelation().getLexiconConfiguration().getBlobsThreshold(), Integer.valueOf(AbstractTripleStore.Options.DEFAULT_BLOBS_THRESHOLD).intValue()); } finally { store.__tearDownUnitTest(); } }
/** * Default configuration - verify that BLOBS index exists. */ public void test_blobsSupport_defaultConfiguration() { final AbstractTripleStore store = getStore(); try { final IIndex blobsIndex = store.getLexiconRelation().getBlobsIndex(); assertNotNull(blobsIndex); assertEquals(store.getLexiconRelation().getLexiconConfiguration().getBlobsThreshold(), Integer.valueOf(AbstractTripleStore.Options.DEFAULT_BLOBS_THRESHOLD).intValue()); } finally { store.__tearDownUnitTest(); } }
/** * Override configuration - BLOBS index uses a non-default threashold. */ public void test_blobsSupport_nonDefaultBlobsIndexThresholdConfiguration() { final Properties p = new Properties(getProperties()); final int overrideThreshold = Integer.valueOf(AbstractTripleStore.Options.DEFAULT_BLOBS_THRESHOLD) * 2; p.setProperty(AbstractTripleStore.Options.BLOBS_THRESHOLD, Integer.toString(overrideThreshold)); final AbstractTripleStore store = getStore(p); try { final IIndex blobsIndex = store.getLexiconRelation().getBlobsIndex(); assertNotNull(blobsIndex); assertEquals(store.getLexiconRelation().getLexiconConfiguration().getBlobsThreshold(), overrideThreshold); } 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(); } }
/** * Default configuration - verify that BLOBS index exists. */ public void test_blobsSupport_defaultConfiguration() { final AbstractTripleStore store = getStore(); try { final IIndex blobsIndex = store.getLexiconRelation().getBlobsIndex(); assertNotNull(blobsIndex); assertEquals(store.getLexiconRelation().getLexiconConfiguration().getBlobsThreshold(), Integer.valueOf(AbstractTripleStore.Options.DEFAULT_BLOBS_THRESHOLD).intValue()); } finally { store.__tearDownUnitTest(); } }
/** * Override configuration - BLOBS index uses a non-default threashold. */ public void test_blobsSupport_nonDefaultBlobsIndexThresholdConfiguration() { final Properties p = new Properties(getProperties()); final int overrideThreshold = Integer.valueOf(AbstractTripleStore.Options.DEFAULT_BLOBS_THRESHOLD) * 2; p.setProperty(AbstractTripleStore.Options.BLOBS_THRESHOLD, Integer.toString(overrideThreshold)); final AbstractTripleStore store = getStore(p); try { final IIndex blobsIndex = store.getLexiconRelation().getBlobsIndex(); assertNotNull(blobsIndex); assertEquals(store.getLexiconRelation().getLexiconConfiguration().getBlobsThreshold(), overrideThreshold); } 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(); } }