666768697071727374757677
} public TestResults diffParams( NVPair[] record, NVPair[] playback, TestResults results ) throws DiffFailedException { // assumption: params are sorted. NVPair recPair = null; NVPair playPair = null; int i = 0; boolean match = false; if ( record != null ) { for ( i = 0; i < record.length; i++, match = false ) { recPair = record[i];
519520521522523524525526527528529
private static NVPair[] convertHeaders( Header[] headers ) { if ( headers == null ) { return null; } NVPair[] newPairs = new NVPair[headers.length]; NVPair newPair = null; for ( int i = 0; i < headers.length; i++ ) { newPair = convertHeader( headers[i] ); newPairs[i] = newPair; } return newPairs;
531532533534535536537
private static NVPair convertHeader( Header header ) { if ( log.isDebugEnabled() ) { log.debug( "header, name( " + header.getName() + " ), value( " + header.getValue() + " )" ); } return new NVPair( header.getName(), header.getValue() ); }