public class IndexRuleMultipleTypesTest extends BaseIndexingTest<GuidedRuleDRLResourceTypeDefinition> {
@Test
public void testIndexDrlRuleMultipleTypes() 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( "drl3.rdrl" );
final String drl1 = loadText( "drl3.rdrl" );
ioService().write( path1,
drl1 );
final Path path2 = basePath.resolve( "drl4.rdrl" );
final String drl2 = loadText( "drl4.rdrl" );
ioService().write( path2,
drl2 );
Thread.sleep( 5000 ); //wait for events to be consumed from jgit -> (notify changes -> watcher -> index) -> lucene index