[hibernate-dev] [OGM] SimpleEntityMassIndexingTest using HSEARCH TestConstants methods

Davide D'Alto daltodavide at gmail.com
Tue May 21 05:40:25 EDT 2013


Hello,
I'll take a look at it and let you know.

Cheers,
Davide


On Mon, May 20, 2013 at 10:05 PM, Guillaume SCHEIBEL <
guillaume.scheibel at gmail.com> wrote:

> There is a second wrong call:
>
> AssociationMassIndexerTest.getEntities()
>
>
> 2013/5/20 Guillaume SCHEIBEL <guillaume.scheibel at gmail.com>
>
> > Hello,
> >
> > I've noticed in SimpleEntityMassIndexingTest.getBaseIndexDir() we are
> > using a method from HSearch:  TestConstants.getIndexDirectory().
> >
> > The problem is in OGM this method is used like this:
> >
> > *File indexPath = new File( TestConstants.getIndexDirectory(),
> > shortTestName );*
> >
> > but in Hsearch the signature is:
> >
> > *public static java.lang.String getIndexDirectory(java.lang.Class<?>
> > testClass)*
> >
> > what should I do ?
> > I think fixing the call is a good idea. So should rather be ?:
> >
> > *File indexPath = new File( TestConstants.getIndexDirectory(**
> > SimpleEntityMassIndexingTest.class**), shortTestName );*
> >
> > Guillaume
> >
> _______________________________________________
> hibernate-dev mailing list
> hibernate-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev
>


More information about the hibernate-dev mailing list