Return-Path: X-Original-To: apmail-jackrabbit-commits-archive@www.apache.org Delivered-To: apmail-jackrabbit-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 35BCA6A56 for ; Wed, 22 Jun 2011 15:29:50 +0000 (UTC) Received: (qmail 65021 invoked by uid 500); 22 Jun 2011 15:29:50 -0000 Delivered-To: apmail-jackrabbit-commits-archive@jackrabbit.apache.org Received: (qmail 64958 invoked by uid 500); 22 Jun 2011 15:29:50 -0000 Mailing-List: contact commits-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list commits@jackrabbit.apache.org Received: (qmail 64950 invoked by uid 99); 22 Jun 2011 15:29:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jun 2011 15:29:49 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jun 2011 15:29:49 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id F1C5923889B2; Wed, 22 Jun 2011 15:29:28 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1138504 - /jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/PathTest.java Date: Wed, 22 Jun 2011 15:29:28 -0000 To: commits@jackrabbit.apache.org From: mduerig@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110622152928.F1C5923889B2@eris.apache.org> Author: mduerig Date: Wed Jun 22 15:29:28 2011 New Revision: 1138504 URL: http://svn.apache.org/viewvc?rev=1138504&view=rev Log: tests Modified: jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/PathTest.java Modified: jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/PathTest.java URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/PathTest.java?rev=1138504&r1=1138503&r2=1138504&view=diff ============================================================================== --- jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/PathTest.java (original) +++ jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/PathTest.java Wed Jun 22 15:29:28 2011 @@ -48,6 +48,20 @@ public class PathTest extends TestCase { test("parent", "{x/y}child"); } + public void testMore() { + String[] paths = { + "/foo", + "/foo/", + "/foo//", + "/foo///", + "foo", + }; + + for (String path : paths) { + assertEquals(path, PathUtils.concat(PathUtils.getParentPath(path), PathUtils.getName(path))); + } + } + private void test(String parent, String child) { // split