Package com.twitter.common.util

Examples of com.twitter.common.util.Random


      int jitterWindowMs,
      boolean shouldThrow) {

    int randomValue = 123;

    Random mockRandom = control.createMock(Random.class);

    if (!shouldThrow) {
      expect(mockRandom.nextInt(jitterWindowMs)).andReturn(randomValue);
    }

    control.replay();

    assertEquals(
View Full Code Here

TOP

Related Classes of com.twitter.common.util.Random

Copyright © 2018 www.massapicom. 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.