Examples of test_cacheClear()


Examples of com.ikanow.infinit.e.api.knowledge.federated.SimpleFederatedQueryEngine.test_cacheClear()

      queryEngine.test_CheckIfDocAdded("3.1", docs);
      // (don't clear from cache, next doc should return without making a request)
     
      // 3.2] Like 3.1 but with JsonPath
      // (clear cache here to ensure we don't just used the cached doc)
      queryEngine.test_cacheClear(true, true, fakeEndpoint.parentSource.getKey());
     
      query.qt = new ArrayList<AdvancedQueryPojo.QueryTermPojo>(1);
      qtEntVal = new AdvancedQueryPojo.QueryTermPojo();
      qtEntVal.entityValue = "test3_1";
      qtEntVal.entityType = "TestEntityIn";
View Full Code Here

Examples of com.ikanow.infinit.e.api.knowledge.federated.SimpleFederatedQueryEngine.test_cacheClear()

      queryEngine.test_CheckIfDocAdded("4.1", docs);
      // (don't clear from cache, next doc should check cache but remove expired value)
     
      // 4.2] Test expired then cached query
      // (currently need to clear the doc cache to make this work - see tests that need to be added properly, listed above)
      queryEngine.test_cacheClear(false, true, fakeEndpoint.parentSource.getKey());
      queryEngine.test_cacheExpire();
      docs.remove(0);
      queryId = new ObjectId();
      queryEngine.preQueryActivities(queryId, query, communityIdStrs);
      queryEngine.test_CheckIfQueryLaunched("4.2", true); // (ie check no query added - because it was in the cache)
View Full Code Here

Examples of com.ikanow.infinit.e.api.knowledge.federated.SimpleFederatedQueryEngine.test_cacheClear()

      queryEngine.test_CheckIfDocAdded("4.2", docs);
      // (don't clear from cache, next doc should return without making a request)
     
      // 4.3] Test cached query - bulk remove
      // (currently need to clear the doc cache to make this work - see tests that need to be added properly, listed above)
      queryEngine.test_cacheClear(false, true, fakeEndpoint.parentSource.getKey());
      docs.remove(0);
      queryId = new ObjectId();
      queryEngine.test_cacheFill("4.3a", true, true);
      queryEngine.preQueryActivities(queryId, query, communityIdStrs);
      queryEngine.test_CheckIfQueryLaunched("4.3", false); // (ie check no query added - because it was in the cache)
View Full Code Here

Examples of com.ikanow.infinit.e.api.knowledge.federated.SimpleFederatedQueryEngine.test_cacheClear()

   
    SimpleFederatedQueryEngine.TEST_MODE_ONLY = true;   
    SimpleFederatedCache.QUERY_FEDERATION_CACHE_CLEANSE_SIZE = 10; // (for 4.2 - override max size after which will intermittently cleanse cache)
   
    // CLEAR (TEST) CACHES:
    queryEngine.test_cacheClear(true, true, fakeEndpoint.parentSource.getKey());
   
    //TEST CASES:
    try {
     
      //(use this above the appropriate failing test to get debug info:)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.