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 DA99F184B0 for ; Wed, 5 Aug 2015 01:15:20 +0000 (UTC) Received: (qmail 62809 invoked by uid 500); 5 Aug 2015 01:15:20 -0000 Delivered-To: apmail-ignite-commits-archive@ignite.apache.org Received: (qmail 62777 invoked by uid 500); 5 Aug 2015 01:15:20 -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 62767 invoked by uid 99); 5 Aug 2015 01:15:20 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Aug 2015 01:15:20 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 58219C0A66 for ; Wed, 5 Aug 2015 01:15:20 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.791 X-Spam-Level: X-Spam-Status: No, score=0.791 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, T_RP_MATCHES_RCVD=-0.01, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id N2D5KA0wA8Kh for ; Wed, 5 Aug 2015 01:15:05 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with SMTP id 261022773D for ; Wed, 5 Aug 2015 01:14:56 +0000 (UTC) Received: (qmail 60344 invoked by uid 99); 5 Aug 2015 01:14:53 -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; Wed, 05 Aug 2015 01:14:53 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id E3364E33C8; Wed, 5 Aug 2015 01:14:52 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: akuznetsov@apache.org To: commits@ignite.incubator.apache.org Date: Wed, 05 Aug 2015 01:15:19 -0000 Message-Id: In-Reply-To: <7bb3a0a290bb4ab1a58b12b91ae49cef@git.apache.org> References: <7bb3a0a290bb4ab1a58b12b91ae49cef@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [28/50] incubator-ignite git commit: IGNITE-1185 Locate configuration in class path: Add tests. IGNITE-1185 Locate configuration in class path: Add 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/79f27f4a Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/79f27f4a Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/79f27f4a Branch: refs/heads/ignite-843 Commit: 79f27f4a3a2238d8ec196aa92bb35c8d10ce5d36 Parents: 518b623 Author: sevdokimov Authored: Mon Aug 3 13:46:40 2015 +0300 Committer: sevdokimov Committed: Mon Aug 3 13:46:40 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/79f27f4a/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/79f27f4a/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 {