Package com.bluesoft.util.metrics.core

Examples of com.bluesoft.util.metrics.core.MeteringMetric.reset()


  @Test
  public void testResetForMeteringMetric() {
    MeteringMetric mock = createMock( MeteringMetric.class );
    UnitRoundingMeteringMetric rounder = new UnitRoundingMeteringMetric( TimeUnit.MINUTES, mock );
    final BasicMeteringMetric snapshot = new BasicMeteringMetric( "test" );
    expect( mock.reset() ).andReturn( snapshot );
    replay( mock );
    assertTrue( rounder.reset().getClass().isAssignableFrom( UnitRoundingMeteringMetric.class ) );
    verify( mock );
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.