コード例 #1
0
  /** {@inheritDoc} */
  @Override
  protected void beforeTestsStarted() throws Exception {
    super.beforeTestsStarted();

    for (int i = 0; i < vals.length; i++) {
      int valLen = ThreadLocalRandom8.current().nextInt(128, 512);

      StringBuilder sb = new StringBuilder();

      for (int j = 0; j < valLen; j++) sb.append('a' + ThreadLocalRandom8.current().nextInt(20));

      vals[i] = sb.toString();

      info("Value: " + vals[i]);
    }
  }
コード例 #2
0
  /** {@inheritDoc} */
  @Override
  protected void afterTestsStopped() throws Exception {
    super.afterTestsStopped();

    stopAllGrids();
  }
コード例 #3
0
  /** {@inheritDoc} */
  @Override
  protected void beforeTestsStarted() throws Exception {
    super.beforeTestsStarted();

    startGrids(4);
  }