public void testIndexGuidedScoreCard() throws IOException, InterruptedException {
//Add test files
final Path path1 = basePath.resolve( "scorecard1.scgd" );
final ScoreCardModel model1 = GuidedScoreCardFactory.makeScoreCardWithCharacteristics( "org.drools.workbench.screens.guided.scorecard.backend.server.indexing",
new ArrayList<Import>() {{
add( new Import( "org.drools.workbench.screens.guided.scorecard.backend.server.indexing.classes.Applicant" ) );
add( new Import( "org.drools.workbench.screens.guided.scorecard.backend.server.indexing.classes.Mortgage" ) );
}},
"scorecard1" );
final String xml1 = GuidedScoreCardXMLPersistence.getInstance().marshal( model1 );
ioService().write( path1,
xml1 );
final Path path2 = basePath.resolve( "scorecard2.scgd" );
final ScoreCardModel model2 = GuidedScoreCardFactory.makeScoreCardWithoutCharacteristics( "org.drools.workbench.screens.guided.scorecard.backend.server.indexing",
new ArrayList<Import>() {{
add( new Import( "org.drools.workbench.screens.guided.scorecard.backend.server.indexing.classes.Applicant" ) );
add( new Import( "org.drools.workbench.screens.guided.scorecard.backend.server.indexing.classes.Mortgage" ) );
}},
"scorecard2" );
final String xml2 = GuidedScoreCardXMLPersistence.getInstance().marshal( model2 );
ioService().write( path2,
xml2 );