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

Guillaume SCHEIBEL guillaume.scheibel at gmail.com
Mon May 20 17:05:50 EDT 2013


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
>


More information about the hibernate-dev mailing list