Statistics implements StatisticsMBean, Serializable { public void resetStats(){ this.cacheHits.set(0); this.cacheMiss.set(0); this.statementsCached.set(0); this.connectionsRequested.set(0); this.cumulativeConnectionWaitTime.set(0); this.cumulativeStatementExecuteTime.set(0); this.cumulativeStatementPrepareTime.set(0); this.statementsExecuted.set(0); this.statementsPrepared.set(0); } Statistics(BoneCP pool); void resetStats(); double getConnectionWaitTimeAvg(); double getStatementExecuteTimeAvg(); double getStatementPrepareTimeAvg(); int getTotalLeased(); int getTotalFree(); int getTotalCreatedConnections(); long getCacheHits(); long getCacheMiss(); long getStatementsCached(); long getConnectionsRequested(); long getCumulativeConnectionWaitTime(); double getCacheHitRatio(); long getStatementsExecuted(); long getCumulativeStatementExecutionTime(); long getCumulativeStatementPrepareTime(); long getStatementsPrepared();  }
@Test public void testStatsReset() throws IllegalArgumentException, IllegalAccessException{ this.stats.resetStats(); checkValuesSetToZero(this.stats); }