ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [1/2] incubator-ignite git commit: # ignite-45 added test for Ignition.start()
Date Sat, 21 Mar 2015 09:00:43 GMT
Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-45 dea117528 -> 19350779a


# ignite-45 added test for Ignition.start()


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

Branch: refs/heads/ignite-45
Commit: db974fbace0d893f21771ab3a24e28b8919946a6
Parents: dfc1a49
Author: sboikov <semen.boikov@inria.fr>
Authored: Sat Mar 21 11:57:10 2015 +0300
Committer: sboikov <semen.boikov@inria.fr>
Committed: Sat Mar 21 12:00:07 2015 +0300

----------------------------------------------------------------------
 .../ignite/internal/GridFactorySelfTest.java    | 22 ++++++++++++++++++++
 1 file changed, 22 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/db974fba/modules/spring/src/test/java/org/apache/ignite/internal/GridFactorySelfTest.java
----------------------------------------------------------------------
diff --git a/modules/spring/src/test/java/org/apache/ignite/internal/GridFactorySelfTest.java
b/modules/spring/src/test/java/org/apache/ignite/internal/GridFactorySelfTest.java
index ab3d699..6bd50de 100644
--- a/modules/spring/src/test/java/org/apache/ignite/internal/GridFactorySelfTest.java
+++ b/modules/spring/src/test/java/org/apache/ignite/internal/GridFactorySelfTest.java
@@ -82,6 +82,28 @@ public class GridFactorySelfTest extends GridCommonAbstractTest {
     /**
      * @throws Exception If failed.
      */
+    public void testStartDefault() throws Exception {
+        try (Ignite ignite = Ignition.start()) {
+            log.info("Started1: " + ignite.name());
+
+            try {
+                Ignition.start();
+
+                fail();
+            }
+            catch (IgniteException expected) {
+                // No-op.
+            }
+        }
+
+        try (Ignite ignite = Ignition.start()) {
+            log.info("Started2: " + ignite.name());
+        }
+    }
+
+    /**
+     * @throws Exception If failed.
+     */
     public void testStartGridWithConfigUrlString() throws Exception {
         GridEmbeddedHttpServer srv = null;
         String gridName = "grid_with_url_config";


Mime
View raw message