/**
* Test parsing of a request with a Substrings Filter with 1 Initial and 1 Final elements
*/
public void testRequestWithSubstrings1Initial1Final()
{
Dsmlv2Parser parser = null;
try
{
parser = new Dsmlv2Parser();
parser.setInputFile( SearchRequestTest.class.getResource(
"filters/request_with_substrings_1_initial_1_final.xml" ).getFile() );
parser.parse();
}
catch ( Exception e )
{
fail( e.getMessage() );
}
SearchRequest searchRequest = ( SearchRequest ) parser.getBatchRequest().getCurrentRequest();
Filter filter = searchRequest.getFilter();
assertTrue( filter instanceof SubstringFilter );