incubator-photark-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "avdhesh .java" <avdhesh.j...@gmail.com>
Subject Re: GalleryTestCase failing
Date Wed, 09 Dec 2009 05:36:08 GMT
Hi,

I think we should read album based on when the album was created..
I have started looking into the source code...once i grasp the code...i will
take one of the jira issues and try to submit patch...

photark is based on Apache Tuscany and jcr(java content repository)..i think
i have to look these frameworks first...


Regards
Avdhesh


On Mon, Dec 7, 2009 at 9:45 PM, Luciano Resende <luckbr1975@gmail.com>wrote:

> On Mon, Dec 7, 2009 at 7:30 AM, avdhesh .java <avdhesh.java@gmail.com>
> wrote:
> > i have tried build the photark...but the GallerTestCase failed..
> >
> > i have investigated the reason and found that when i change Assert
> condition
> > 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  order....
> >
>
> 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
> discussion
> > of non-orthogonal, non-integral polytheism is beyond the scope of this
> > article.)
> >
>
>
>
> --
> Luciano Resende
> http://people.apache.org/~lresende <http://people.apache.org/%7Elresende>
> http://lresende.blogspot.com/
>



-- 
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 discussion
of non-orthogonal, non-integral polytheism is beyond the scope of this
article.)

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message