/** * @throws Exception If failed. */ @Test public void testLoadCacheWithSqlTx() throws Exception { startTestGrid(false, false, false, true, 512); checkCacheLoadWithSql(); }
/** * @throws Exception If failed. */ @Test public void testLoadCacheTx() throws Exception { startTestGrid(false, false, false, true, 512); checkCacheLoad(); }
/** * @throws Exception If failed. */ @Test public void testPutRemoveTxBuiltIn() throws Exception { startTestGrid(true, false, false, true, 512); checkPutRemove(); }
/** * @throws Exception If failed. */ @Test public void testLoadCacheWithStatement() throws Exception { startTestGrid(false, false, false, false, 512); checkCacheLoadWithStatement(); }
/** * @throws Exception If failed. */ @Test public void testLoadCacheWithSql() throws Exception { startTestGrid(false, false, false, false, 512); checkCacheLoadWithSql(); }
/** * @throws Exception If failed. */ @Test public void testLoadCachePrimitiveKeysTx() throws Exception { startTestGrid(true, false, false, true, 512); checkCacheLoad(); }
/** * @throws Exception If failed. */ @Test public void testPutRemoveTx() throws Exception { startTestGrid(false, false, false, true, 512); checkPutRemove(); }
/** * @throws Exception If failed. */ @Test public void testLoadCacheWithStatementTx() throws Exception { startTestGrid(false, false, false, true, 512); checkCacheLoadWithStatement(); }
/** * @throws Exception If failed. */ @Test public void testLoadCache() throws Exception { startTestGrid(false, false, false, false, 512); checkCacheLoad(); }
/** * @throws Exception If failed. */ @Test public void testLoadCacheAll() throws Exception { startTestGrid(false, false, false, false, ORGANIZATION_CNT + PERSON_CNT + 1); checkCacheLoad(); }
/** * @throws Exception If failed. */ @Test public void testLoadCachePrimitiveKeys() throws Exception { startTestGrid(true, false, false, false, 512); checkCacheLoad(); }
/** * @throws Exception If failed. */ @Test public void testPutRemoveBuiltIn() throws Exception { startTestGrid(true, false, false, false, 512); checkPutRemove(); }
/** * @throws Exception If failed. */ @Test public void testPutRemove() throws Exception { startTestGrid(false, false, false, false, 512); checkPutRemove(); }
/** * @throws Exception If failed. */ @Test public void testLoadNotRegisteredType() throws Exception { startTestGrid(false, false, false, false, 512); IgniteCache<Object, Object> c1 = grid().cache(CACHE_NAME); try { c1.loadCache(null, "PersonKeyWrong", "SELECT * FROM Person"); } catch (CacheLoaderException e) { String msg = e.getMessage(); assertTrue("Unexpected exception: " + msg, ("Provided key type is not found in store or cache configuration " + "[cache=" + CACHE_NAME + ", key=PersonKeyWrong]").equals(msg)); } } }