You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by vo...@apache.org on 2015/09/04 09:48:21 UTC

[12/17] ignite git commit: ignite-1369: fixed failing portable example tests

ignite-1369: fixed failing portable example tests


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

Branch: refs/heads/ignite-1364-1
Commit: ca1523ec5c28286ac75f9fedd51cd53eb7870ff1
Parents: 77fc969
Author: Denis Magda <dm...@gridgain.com>
Authored: Fri Sep 4 09:05:55 2015 +0300
Committer: Denis Magda <dm...@gridgain.com>
Committed: Fri Sep 4 09:05:55 2015 +0300

----------------------------------------------------------------------
 .../portable/datagrid/CacheClientPortablePutGetExample.java     | 4 ++++
 .../portable/datagrid/CacheClientPortableQueryExample.java      | 5 +++++
 2 files changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/ca1523ec/examples/src/main/java/org/apache/ignite/examples/portable/datagrid/CacheClientPortablePutGetExample.java
----------------------------------------------------------------------
diff --git a/examples/src/main/java/org/apache/ignite/examples/portable/datagrid/CacheClientPortablePutGetExample.java b/examples/src/main/java/org/apache/ignite/examples/portable/datagrid/CacheClientPortablePutGetExample.java
index 19c5685..77c5d95 100644
--- a/examples/src/main/java/org/apache/ignite/examples/portable/datagrid/CacheClientPortablePutGetExample.java
+++ b/examples/src/main/java/org/apache/ignite/examples/portable/datagrid/CacheClientPortablePutGetExample.java
@@ -86,6 +86,10 @@ public class CacheClientPortablePutGetExample {
 
                 System.out.println();
             }
+            finally {
+                // Delete cache with its content completely.
+                ignite.destroyCache(CACHE_NAME);
+            }
         }
     }
 

http://git-wip-us.apache.org/repos/asf/ignite/blob/ca1523ec/examples/src/main/java/org/apache/ignite/examples/portable/datagrid/CacheClientPortableQueryExample.java
----------------------------------------------------------------------
diff --git a/examples/src/main/java/org/apache/ignite/examples/portable/datagrid/CacheClientPortableQueryExample.java b/examples/src/main/java/org/apache/ignite/examples/portable/datagrid/CacheClientPortableQueryExample.java
index 1eb43b3..b0048fa 100644
--- a/examples/src/main/java/org/apache/ignite/examples/portable/datagrid/CacheClientPortableQueryExample.java
+++ b/examples/src/main/java/org/apache/ignite/examples/portable/datagrid/CacheClientPortableQueryExample.java
@@ -117,6 +117,11 @@ public class CacheClientPortableQueryExample {
 
                 System.out.println();
             }
+            finally {
+                // Delete caches with their content completely.
+                ignite.destroyCache(ORGANIZATION_CACHE_NAME);
+                ignite.destroyCache(EMPLOYEE_CACHE_NAME);
+            }
         }
     }