/**
* Test parsing of a Response with 1 Search Result Entry, 1 Search Result Reference and a Search Result Done
*/
public void testResponseWith1SRE1SRR1SRD()
{
Dsmlv2ResponseParser parser = null;
try
{
parser = new Dsmlv2ResponseParser();
parser.setInputFile( SearchResponseTest.class.getResource( "response_with_1_SRE_1_SRR_1_SRD.xml" )
.getFile() );
parser.parse();
}
catch ( Exception e )
{
fail( e.getMessage() );
}
SearchResponse searchResponse = ( SearchResponse ) parser.getBatchResponse().getCurrentResponse();
assertEquals( 1, searchResponse.getSearchResultEntryList().size() );
assertEquals( 1, searchResponse.getSearchResultReferenceList().size() );