public static void assertInsertCount ( long expectedInsertCount ) { QueryCount queryCount = QueryCountHolder . getGrandTotal ( ) ; long recordedInsertCount = queryCount . getInsert ( ) ; if ( expectedInsertCount != recordedInsertCount ) { throw new SQLInsertCountMismatchException ( expectedInsertCount , recordedInsertCount ) ; } }
Assert insert statement count