Package com.bluesoft.util.metrics.core

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


  @Test
  public void testReset() {
    TimingMetric mock = createMock( TimingMetric.class );
    UnitRoundingTimingMetric rounder = new UnitRoundingTimingMetric( TimeUnit.MINUTES, TimeUnit.MILLISECONDS, mock );
    final BasicTimingMetric snapshot = new BasicTimingMetric( "test" );
    expect( mock.reset() ).andReturn( snapshot );
    replay( mock );
    assertTrue( rounder.reset().getClass().isAssignableFrom( UnitRoundingTimingMetric.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.