public static void assertSelectCount ( long expectedSelectCount ) { QueryCount queryCount = QueryCountHolder . getGrandTotal ( ) ; long recordedSelectCount = queryCount . getSelect ( ) ; if ( expectedSelectCount != recordedSelectCount ) { throw new SQLSelectCountMismatchException ( expectedSelectCount , recordedSelectCount ) ; } }
Assert select statement count