From photark-dev-return-199-apmail-incubator-photark-dev-archive=incubator.apache.org@incubator.apache.org Mon Dec 07 16:16:23 2009 Return-Path: Delivered-To: apmail-incubator-photark-dev-archive@minotaur.apache.org Received: (qmail 75847 invoked from network); 7 Dec 2009 16:16:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Dec 2009 16:16:23 -0000 Received: (qmail 72746 invoked by uid 500); 7 Dec 2009 16:16:23 -0000 Delivered-To: apmail-incubator-photark-dev-archive@incubator.apache.org Received: (qmail 72717 invoked by uid 500); 7 Dec 2009 16:16:23 -0000 Mailing-List: contact photark-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: photark-dev@incubator.apache.org Delivered-To: mailing list photark-dev@incubator.apache.org Received: (qmail 72707 invoked by uid 99); 7 Dec 2009 16:16:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Dec 2009 16:16:23 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of luckbr1975@gmail.com designates 209.85.216.171 as permitted sender) Received: from [209.85.216.171] (HELO mail-px0-f171.google.com) (209.85.216.171) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Dec 2009 16:16:15 +0000 Received: by pxi1 with SMTP id 1so3102707pxi.29 for ; Mon, 07 Dec 2009 08:15:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=xSU+Vb7IwPfTJvWCKFR2+NsaJJMlgaNG7cdAmm80wEU=; b=uKpHNZmkToUdj0zhuUVQ/Ykn7ivYF9dSH8P49EvBqF2iSw4gjkFiykPEaxFzwVPcf1 oYSmSaWeYRMdQQ6CnhsCUvyvHzF4WQ5ELAiYu1pGw+4tBPm0NwQqsjboApoeBofAkmYP ahkGcKIMeuuSb0m2NlAB+x4J0h2QCMeWaPwI8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=Gewh7otCR5eJrYYLIuHto5Vhc24seTEv5Ca1lEVLvhMcEJ87KQbL3R7zawc3p3XIbA rIxsT20bxEwD5YK5vxQ90oG8ATY9g3/AEoxnBxCJjVoQkLk60S5H1qOOzNGasu5YSUID QvU7TJ2b12EDrwb2TZzkocAfloB2xV/RIlPrA= MIME-Version: 1.0 Received: by 10.140.191.14 with SMTP id o14mr452749rvf.97.1260202553760; Mon, 07 Dec 2009 08:15:53 -0800 (PST) In-Reply-To: References: Date: Mon, 7 Dec 2009 08:15:53 -0800 Message-ID: <5a75db780912070815u72051865v658dc0d5ad9f47ef@mail.gmail.com> Subject: Re: GalleryTestCase failing From: Luciano Resende To: photark-dev@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Mon, Dec 7, 2009 at 7:30 AM, avdhesh .java wrot= e: > i have tried build the photark...but the GallerTestCase failed.. > > i have investigated the reason and found that when i change Assert condit= ion > from > > Assert.assertEquals("album-1", albums[0].getName()); > Assert.assertEquals("album-2", albums[1].getName()); > > to > > Assert.assertEquals("album-2", albums[0].getName()); > Assert.assertEquals("album-1", albums[1].getName()); > > it worked and GalleryTestCase run successfully.... > Thanks, as you mentioned below, this is probably because the way the albums are read from my unix based fileSystem are coming in a different order compared to the os you are using. How about a slightly different fix, that should make this work independent of the os. Assert.assertTrue(albums[0].getName().startsWith("album-")); Assert.assertTrue(albums[1].getName().startsWith("album-")); > Actually gallery implementation needs to improved so that it reads albums > alphabetic =A0order.... > Should we read in alphabetic order ? Or should we read based on when the album was created, and make the most recent ones in the top ? I'm trying to finish up working on album upload, and once that part is done, I believe we are going to have more information about the albums, which would make this much easier, but for now I guess we could try to check the directory creation date... but that might be misleading if for example you just created the folder by checking out the project source... > -- > Thanks, > Avdhesh > 09873421630 > > Disclaimer: Any resemblance between the above views and those of my > employer, my terminal, or the view out my window are purely coincidental. > Any resemblance between the above and my own views is non-deterministic. = The > question of the existence of views in the absence of anyone to hold them = is > left as an exercise for the reader. The question of the existence of the > reader is left as an exercise for the second god coefficient. (A discussi= on > of non-orthogonal, non-integral polytheism is beyond the scope of this > article.) > --=20 Luciano Resende http://people.apache.org/~lresende http://lresende.blogspot.com/