Return-Path: X-Original-To: apmail-ignite-commits-archive@minotaur.apache.org Delivered-To: apmail-ignite-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B208B18052 for ; Mon, 3 Aug 2015 11:17:13 +0000 (UTC) Received: (qmail 58607 invoked by uid 500); 3 Aug 2015 11:17:13 -0000 Delivered-To: apmail-ignite-commits-archive@ignite.apache.org Received: (qmail 58576 invoked by uid 500); 3 Aug 2015 11:17:13 -0000 Mailing-List: contact commits-help@ignite.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.incubator.apache.org Delivered-To: mailing list commits@ignite.incubator.apache.org Received: (qmail 58567 invoked by uid 99); 3 Aug 2015 11:17:13 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Aug 2015 11:17:13 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 318B6D9D70 for ; Mon, 3 Aug 2015 11:17:13 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.553 X-Spam-Level: * X-Spam-Status: No, score=1.553 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.228, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 7kOi4uIiiMoK for ; Mon, 3 Aug 2015 11:17:04 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with SMTP id 8CE1450685 for ; Mon, 3 Aug 2015 11:17:03 +0000 (UTC) Received: (qmail 58316 invoked by uid 99); 3 Aug 2015 11:17:03 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Aug 2015 11:17:03 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 08523E01CA; Mon, 3 Aug 2015 11:17:02 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: sevdokimov@apache.org To: commits@ignite.incubator.apache.org Date: Mon, 03 Aug 2015 11:17:03 -0000 Message-Id: In-Reply-To: <52061a545c274f8e81b2e14f720c589b@git.apache.org> References: <52061a545c274f8e81b2e14f720c589b@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [2/3] incubator-ignite git commit: IGNITE-1185 Locate configuration in class path: Add tests. (cherry picked from commit 79f27f4) IGNITE-1185 Locate configuration in class path: Add tests. (cherry picked from commit 79f27f4) Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/c66a877a Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/c66a877a Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/c66a877a Branch: refs/heads/ignite-1.3.3 Commit: c66a877ad5cacfca310341e7301d7e2e96d6c6dc Parents: 754da7a Author: sevdokimov Authored: Mon Aug 3 13:46:40 2015 +0300 Committer: sevdokimov Committed: Mon Aug 3 14:15:26 2015 +0300 ---------------------------------------------------------------------- .../src/test/java/config/ignite-test-config.xml | 43 ++++++++++++++++++++ .../ignite/internal/GridFactorySelfTest.java | 9 ++++ 2 files changed, 52 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/c66a877a/modules/spring/src/test/java/config/ignite-test-config.xml ---------------------------------------------------------------------- diff --git a/modules/spring/src/test/java/config/ignite-test-config.xml b/modules/spring/src/test/java/config/ignite-test-config.xml new file mode 100644 index 0000000..145d124 --- /dev/null +++ b/modules/spring/src/test/java/config/ignite-test-config.xml @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/c66a877a/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 ecc7fb7..fb8cbfe 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 @@ -824,6 +824,15 @@ public class GridFactorySelfTest extends GridCommonAbstractTest { } /** + * @throws Exception If failed. + */ + public void testConfigInClassPath() throws Exception { + try (Ignite ignite = Ignition.start("config/ignite-test-config.xml")) { + assert "config-in-classpath".equals(ignite.name()); + } + } + + /** * Test task. */ private static class TestTask extends ComputeTaskSplitAdapter {