public class IndexEnumEntriesTest extends BaseIndexingTest<EnumResourceTypeDefinition> {
@Test
public void testIndexEnumEntries() throws IOException, InterruptedException {
//Don't ask, but we need to write a single file first in order for indexing to work
final Path basePath = getDirectoryPath().resolveSibling( "someNewOtherPath" );
ioService().write( basePath.resolve( "dummy" ),
"<none>" );
//Add test files
final Path path1 = basePath.resolve( "enum1.enumeration" );
final String dsl1 = loadText( "enum1.enumeration" );
ioService().write( path1,
dsl1 );
final Path path2 = basePath.resolve( "enum2.enumeration" );
final String dsl2 = loadText( "enum2.enumeration" );
ioService().write( path2,
dsl2 );
Thread.sleep( 5000 ); //wait for events to be consumed from jgit -> (notify changes -> watcher -> index) -> lucene index