/**
* Test parsing of a request with an ExtensibleMatch Filter with empty value
*/
public void testRequestWithExtensibleMatchWithEmptyValue()
{
Dsmlv2Parser parser = null;
try
{
parser = new Dsmlv2Parser();
parser.setInputFile( SearchRequestTest.class.getResource(
"filters/request_with_extensibleMatch_with_empty_value.xml" ).getFile() );
parser.parse();
}
catch ( Exception e )
{
fail( e.getMessage() );
}
SearchRequest searchRequest = ( SearchRequest ) parser.getBatchRequest().getCurrentRequest();
Filter filter = searchRequest.getFilter();
assertTrue( filter instanceof ExtensibleMatchFilter );