/**
* Test parsing of a request with an greaterOrEqual Filter with an empty value
*/
public void testRequestWithGreaterOrEqualFilterEmptyValue()
{
Dsmlv2Parser parser = null;
try
{
parser = new Dsmlv2Parser();
parser.setInputFile( SearchRequestTest.class.getResource(
"filters/request_with_greaterOrEqual_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 AttributeValueAssertionFilter );