ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject incubator-ignite git commit: #ignite-45-client-tests: Remove client cache tests.
Date Thu, 19 Mar 2015 14:00:10 GMT
Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-45-client-tests 242eaa51c -> 0db819bb2


#ignite-45-client-tests: Remove client cache tests.


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/0db819bb
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/0db819bb
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/0db819bb

Branch: refs/heads/ignite-45-client-tests
Commit: 0db819bb23d37707838df85ac0114143cfcc5575
Parents: 242eaa5
Author: ivasilinets <ivasilinets@gridgain.com>
Authored: Thu Mar 19 17:00:03 2015 +0300
Committer: ivasilinets <ivasilinets@gridgain.com>
Committed: Thu Mar 19 17:00:03 2015 +0300

----------------------------------------------------------------------
 .../integration/ClientAbstractSelfTest.java     | 122 -------------------
 1 file changed, 122 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/0db819bb/modules/clients/src/test/java/org/apache/ignite/internal/client/integration/ClientAbstractSelfTest.java
----------------------------------------------------------------------
diff --git a/modules/clients/src/test/java/org/apache/ignite/internal/client/integration/ClientAbstractSelfTest.java
b/modules/clients/src/test/java/org/apache/ignite/internal/client/integration/ClientAbstractSelfTest.java
index a07c1b0..e590f6e 100644
--- a/modules/clients/src/test/java/org/apache/ignite/internal/client/integration/ClientAbstractSelfTest.java
+++ b/modules/clients/src/test/java/org/apache/ignite/internal/client/integration/ClientAbstractSelfTest.java
@@ -451,128 +451,6 @@ public abstract class ClientAbstractSelfTest extends GridCommonAbstractTest
{
     /**
      * @throws Exception If failed.
      */
-    public void testPut() throws Exception {
-        IgniteCache<String, String> dfltCache = grid().jcache(null);
-        IgniteCache<Object, Object> namedCache = grid().jcache(CACHE_NAME);
-
-        GridClientData dfltData = client.data();
-
-        assertNotNull(dfltData);
-
-        GridClientData namedData = client.data(CACHE_NAME);
-
-        assertNotNull(namedData);
-
-        assertTrue(dfltData.put("key1", "val1"));
-        assertEquals("val1", dfltCache.get("key1"));
-
-        assertTrue(dfltData.putAsync("key2", "val2").get());
-        assertEquals("val2", dfltCache.get("key2"));
-
-        assertTrue(namedData.put("key1", "val1"));
-        assertEquals("val1", namedCache.get("key1"));
-
-        assertTrue(namedData.putAsync("key2", "val2").get());
-        assertEquals("val2", namedCache.get("key2"));
-
-        assertTrue(dfltData.put("", ""));
-        assertEquals("", dfltCache.get(""));
-
-        assertTrue(namedData.put("", ""));
-        assertEquals("", namedCache.get(""));
-    }
-
-    /**
-     * @throws Exception If failed.
-     */
-    public void testPutAll() throws Exception {
-        GridClientData dfltData = client.data();
-
-        assertNotNull(dfltData);
-
-        GridClientData namedData = client.data(CACHE_NAME);
-
-        assertNotNull(namedData);
-
-        dfltData.putAll(F.asMap("key1", "val1", "key2", "val2"));
-
-        Map<String, String> map = grid().<String, String>jcache(null).getAll(F.asSet("key1",
"key2"));
-
-        assertEquals(2, map.size());
-        assertEquals("val1", map.get("key1"));
-        assertEquals("val2", map.get("key2"));
-
-        dfltData.putAllAsync(F.asMap("key3", "val3", "key4", "val4")).get();
-
-        map = grid().<String, String>jcache(null).getAll(F.asSet("key3", "key4"));
-
-        assertEquals(2, map.size());
-        assertEquals("val3", map.get("key3"));
-        assertEquals("val4", map.get("key4"));
-
-        namedData.putAll(F.asMap("key1", "val1", "key2", "val2"));
-
-        map = grid().<String, String>jcache(CACHE_NAME).getAll(F.asSet("key1", "key2"));
-
-        assertEquals(2, map.size());
-        assertEquals("val1", map.get("key1"));
-        assertEquals("val2", map.get("key2"));
-
-        namedData.putAllAsync(F.asMap("key3", "val3", "key4", "val4")).get();
-
-        map = grid().<String, String>jcache(CACHE_NAME).getAll(F.asSet("key3", "key4"));
-
-        assertEquals(2, map.size());
-        assertEquals("val3", map.get("key3"));
-        assertEquals("val4", map.get("key4"));
-    }
-
-    /**
-     * @throws Exception If failed.
-     */
-    public void testPutAllWithCornerCases() throws Exception {
-        final GridClientData dfltData = client.data();
-
-        assertNotNull(dfltData);
-
-        GridClientData namedData = client.data(CACHE_NAME);
-
-        assertNotNull(namedData);
-
-        dfltData.putAll(F.asMap("", "val1"));
-
-        assertEquals(F.asMap("", "val1"), grid().<String, String>jcache(null).getAll(F.asSet("")));
-
-        GridClientProtocol proto = clientConfiguration().getProtocol();
-
-        assertThrows(log, new Callable<Object>() {
-            @Override public Object call() throws Exception {
-                dfltData.putAll(Collections.singletonMap("key3", null));
-
-                return null;
-            }
-        }, proto == GridClientProtocol.TCP ? GridClientException.class : IllegalArgumentException.class,
null);
-
-        assertThrows(log, new Callable<Object>() {
-            @Override public Object call() throws Exception {
-                dfltData.putAll(Collections.singletonMap(null, "val2"));
-
-                return null;
-            }
-        }, proto == GridClientProtocol.TCP ? GridClientException.class : IllegalArgumentException.class,
null);
-
-        assertThrows(log, new Callable<Object>() {
-            @Override public Object call() throws Exception {
-                dfltData.getAll(Collections.singleton(null));
-
-                return null;
-            }
-        }, proto == GridClientProtocol.TCP ? GridClientException.class : IllegalArgumentException.class,
null);
-    }
-
-    /**
-     * @throws Exception If failed.
-     */
     public void testAppendPrepend() throws Exception {
         List<GridClientData> datas = Arrays.asList(client.data(), client.data(CACHE_NAME));
 


Mime
View raw message