@Override protected void createCacheManagers() throws Throwable { ConfigurationBuilder cfgBuilder = getDefaultClusteredCacheConfig(CacheMode.DIST_SYNC, false); createClusteredCaches(NUM_NODES, cfgBuilder); }
@Override public void testIndexPresence() { checkIndexPresence(cache1); checkIndexPresence(cache2); }
/** * To be overridden by subclasses. */ protected BasicCache<Object, Object> getCacheForQuery() { return cache(0); }
/** * To be overridden by subclasses. */ protected BasicCache<Object, Object> getCacheForWrite() { return getCacheForQuery(); }
protected ConfigurationBuilder initialCacheConfiguration() { return getDefaultClusteredCacheConfig(CacheMode.REPL_SYNC, false); }
@Test(expectedExceptions = ParsingException.class, expectedExceptionsMessageRegExp = "ISPN028521: Full-text queries cannot be applied to property 'longDescription' in type org.infinispan.query.dsl.embedded.testdomain.hsearch.TransactionHS unless the property is indexed and analyzed.") @Override public void testFullTextPhrase() { super.testFullTextPhrase(); } }
@Test(expectedExceptions = ParsingException.class, expectedExceptionsMessageRegExp = "ISPN028521: Full-text queries cannot be applied to property 'longDescription' in type org.infinispan.query.dsl.embedded.testdomain.hsearch.TransactionHS unless the property is indexed and analyzed.") @Override public void testFullTextTermBoost() { super.testFullTextTermBoost(); }
@Test(expectedExceptions = ParsingException.class, expectedExceptionsMessageRegExp = "ISPN028521: Full-text queries cannot be applied to property 'longDescription' in type org.infinispan.query.dsl.embedded.testdomain.hsearch.TransactionHS unless the property is indexed and analyzed.") @Override public void testFullTextRegexp2() { super.testFullTextRegexp2(); } }
@Test(expectedExceptions = ParsingException.class, expectedExceptionsMessageRegExp = "ISPN028521: Full-text queries cannot be applied to property 'name' in type org.infinispan.query.test.Person unless the property is indexed and analyzed.") public void testDisallowFullTextQuery() { super.testDisallowFullTextQuery(); } }
@Test(expectedExceptions = ParsingException.class, expectedExceptionsMessageRegExp = "ISPN028521: Full-text queries cannot be applied to property 'longDescription' in type org.infinispan.query.dsl.embedded.testdomain.hsearch.TransactionHS unless the property is indexed and analyzed.") @Override public void testFullTextTerm() { super.testFullTextTerm(); }
@Test(expectedExceptions = ParsingException.class, expectedExceptionsMessageRegExp = "ISPN028521: Full-text queries cannot be applied to property 'longDescription' in type org.infinispan.query.dsl.embedded.testdomain.hsearch.TransactionHS unless the property is indexed and analyzed.") @Override public void testFullTextTermDoesntOccur() { super.testFullTextTermDoesntOccur(); }
@Test(expectedExceptions = ParsingException.class, expectedExceptionsMessageRegExp = "ISPN028521: Full-text queries cannot be applied to property 'longDescription' in type org.infinispan.query.dsl.embedded.testdomain.hsearch.TransactionHS unless the property is indexed and analyzed.") @Override public void testFullTextPrefix() { super.testFullTextPrefix(); }
@Test(expectedExceptions = ParsingException.class, expectedExceptionsMessageRegExp = "ISPN028521: Full-text queries cannot be applied to property 'longDescription' in type org.infinispan.query.dsl.embedded.testdomain.hsearch.TransactionHS unless the property is indexed and analyzed.") @Override public void testFullTextWildcardFuzzyNotAllowed() { super.testFullTextWildcardFuzzyNotAllowed(); }
@Test(expectedExceptions = ParsingException.class, expectedExceptionsMessageRegExp = "ISPN028521: Full-text queries cannot be applied to property 'longDescription' in type org.infinispan.query.dsl.embedded.testdomain.hsearch.TransactionHS unless the property is indexed and analyzed.") @Override public void testFullTextFuzzySpecifiedEdits() { super.testFullTextFuzzySpecifiedEdits(); }
@Test(expectedExceptions = ParsingException.class, expectedExceptionsMessageRegExp = "ISPN028521: Full-text queries cannot be applied to property 'longDescription' in type org.infinispan.query.dsl.embedded.testdomain.hsearch.TransactionHS unless the property is indexed and analyzed.") @Override public void testFullTextTerm() { super.testFullTextTerm(); }
@Test(expectedExceptions = ParsingException.class, expectedExceptionsMessageRegExp = "ISPN028521: Full-text queries cannot be applied to property 'longDescription' in type org.infinispan.query.dsl.embedded.testdomain.hsearch.TransactionHS unless the property is indexed and analyzed.") @Override public void testFullTextTermRightOperandAnalyzed() { super.testFullTextTermRightOperandAnalyzed(); }
@Test(expectedExceptions = ParsingException.class, expectedExceptionsMessageRegExp = "ISPN028527: Full-text queries cannot be applied to property 'amount' in type org.infinispan.query.dsl.embedded.testdomain.hsearch.TransactionHS unless the property is indexed.") @Override public void testFullTextRange() { super.testFullTextRange(); }
@Test(expectedExceptions = ParsingException.class, expectedExceptionsMessageRegExp = "ISPN028521: Full-text queries cannot be applied to property 'longDescription' in type org.infinispan.query.dsl.embedded.testdomain.hsearch.TransactionHS unless the property is indexed and analyzed.") @Override public void testFullTextFuzzy() { super.testFullTextFuzzy(); }
public void testEventFilterPerformance() { long t1 = testEventFilterPerformance(false); long t2 = testEventFilterPerformance(true); log.infof("ClusteredListenerWithDslFilterProfilingTest.testEventFilterPerformance doRegisterListener=false took %d ms\n", t1 / 1000000); log.infof("ClusteredListenerWithDslFilterProfilingTest.testEventFilterPerformance doRegisterListener=true took %d ms\n", t2 / 1000000); }
/** * To be overridden by subclasses that need a different query factory. */ protected QueryFactory getQueryFactory() { return Search.getQueryFactory((Cache) getCacheForQuery()); }