APISonar


org.apache.activemq.tool.ClientRunBasis.time

> org > apache > activemq > tool > ClientRunBasis > time
org APIs apache APIs activemq APIs tool APIs ClientRunBasis APIs time APIs

Example 1
public void testSamplerOnTimeBasis_percentageOverridesExceedSamplerDuration() throws InterruptedException {
        final CountDownLatch latch = samplerLatch;
        sampler.setRampUpPercent(60);
        sampler.setRampDownPercent(41);
        sampler.startSampler(latch, ClientRunBasis.time, 1000);
    }
Example 2
public void testSamplerOnTimeBasis_matchesClientSettings() throws InterruptedException {
        final CountDownLatch latch = samplerLatch;
        sampler.startSampler(latch, ClientRunBasis.time, 1000);
        samplerLatch.await();
        assertEquals(1000, (long) sampler.getDuration());
        assertEquals(0, (long) sampler.getRampUpTime());
        assertEquals(0, (long) sampler.getRampDownTime());
    }