#IGNITE-52 - Removed outdated test.
Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/c63177e9 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/c63177e9 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/c63177e9 Branch: refs/heads/sprint-1 Commit: c63177e983177c97cac4a07157822c12055d3ec0 Parents: 51eefaf Author: Alexey Goncharuk <[email protected]> Authored: Fri Feb 13 22:49:38 2015 -0800 Committer: Alexey Goncharuk <[email protected]> Committed: Fri Feb 13 22:49:38 2015 -0800 ---------------------------------------------------------------------- .../cache/GridCacheQueryLoadSelfTest.java | 74 -------------------- 1 file changed, 74 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/c63177e9/modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheQueryLoadSelfTest.java ---------------------------------------------------------------------- diff --git a/modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheQueryLoadSelfTest.java b/modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheQueryLoadSelfTest.java index 9089fe0..56bd396 100644 --- a/modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheQueryLoadSelfTest.java +++ b/modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheQueryLoadSelfTest.java @@ -314,80 +314,6 @@ public class GridCacheQueryLoadSelfTest extends GridCommonAbstractTest { } /** - * @throws Exception If failed. - */ - public void testReloadAllFiltered() throws Exception { - GridCache<Integer, ValueObject> cache = cache(); - - for (int i = 0; i < PUT_CNT; i++) - assert cache.putx(i, new ValueObject(i)); - - assert cache.size() == PUT_CNT; - - Integer[] keys = new Integer[PUT_CNT]; - - for (int i = 0; i < PUT_CNT; i++) - keys[i] = i; - - cache.clear(); - - assert cache.isEmpty(); - assertEquals(0, cache.size()); - - cache.projection(new P1<Cache.Entry<Integer, ValueObject>>() { - @Override public boolean apply(Cache.Entry<Integer, ValueObject> e) { - return e.getKey() >= 5; - } - }).reloadAll(Arrays.asList(keys)); - - assert cache.size() == PUT_CNT - 5; - - Collection<Map.Entry<Integer, ValueObject>> res = - cache.queries().createSqlQuery(ValueObject.class, "val >= 0").execute().get(); - - assert res != null; - assert res.size() == PUT_CNT - 5; - assert size(ValueObject.class) == PUT_CNT - 5; - } - - /** - * @throws Exception If failed. - */ - public void testReloadAllAsyncFiltered() throws Exception { - GridCache<Integer, ValueObject> cache = cache(); - - for (int i = 0; i < PUT_CNT; i++) - assert cache.putx(i, new ValueObject(i)); - - assert cache.size() == PUT_CNT; - - Integer[] keys = new Integer[PUT_CNT]; - - for (int i = 0; i < PUT_CNT; i++) - keys[i] = i; - - cache.clear(); - - assert cache.isEmpty(); - assertEquals(0, cache.size()); - - cache.projection(new P1<Cache.Entry<Integer, ValueObject>>() { - @Override public boolean apply(Cache.Entry<Integer, ValueObject> e) { - return e.getKey() >= 5; - } - }).reloadAllAsync(Arrays.asList(keys)).get(); - - assertEquals(5, cache.size()); - - Collection<Map.Entry<Integer, ValueObject>> res = - cache.queries().createSqlQuery(ValueObject.class, "val >= 0").execute().get(); - - assert res != null; - assert res.size() == PUT_CNT - 5; - assert size(ValueObject.class) == PUT_CNT - 5; - } - - /** * Test store. */ private static class TestStore extends CacheStoreAdapter<Integer, ValueObject> {
