/*
 * The Alluxio Open Foundation licenses this work under the Apache License, version 2.0
 * (the "License"). You may not use this work except in compliance with the License, which is
 * available at www.apache.org/licenses/LICENSE-2.0
 *
 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
 * either express or implied, as more fully set forth in the License.
 *
 * See the NOTICE file distributed with this work for information regarding copyright ownership.
 */

package alluxio.util;

import alluxio.test.util.CommonUtils;

import org.junit.Assert;
import org.junit.Test;

import java.util.Random;

public final class WaitForOptionsTest {
  @Test
  public void defaults() {
    WaitForOptions options = WaitForOptions.defaults();
    Assert.assertEquals(WaitForOptions.DEFAULT_INTERVAL, options.getInterval());
    Assert.assertEquals(WaitForOptions.NEVER, options.getTimeoutMs());
  }

  /**
   * Tests getting and setting fields.
   */
  @Test
  public void fields() {
    Random random = new Random();
    int interval = random.nextInt();
    int timeout = random.nextInt();

    WaitForOptions options = WaitForOptions.defaults();
    options.setInterval(interval);
    options.setTimeoutMs(timeout);

    Assert.assertEquals(interval, options.getInterval());
    Assert.assertEquals(timeout, options.getTimeoutMs());
  }

  @Test
  public void equalsTest() throws Exception {
    CommonUtils.testEquals(WaitForOptions.class);
  }
}

@@ -530,16 +530,62 @@
 .util;%0A%0A
+import static org.junit.Assert.assertEquals;%0A%0A
 import a
@@ -619,33 +619,8 @@
 s;%0A%0A
-import org.junit.Assert;%0A
 impo
@@ -796,31 +796,24 @@
 ults();%0A    
-Assert.
 assertEquals
@@ -866,39 +866,32 @@
 nterval());%0A    
-Assert.
 assertEquals(Wai
@@ -1258,31 +1258,24 @@
 eout);%0A%0A    
-Assert.
 assertEquals
@@ -1313,23 +1313,16 @@
 ));%0A    
-Assert.
 assertEq

Use static imports for standard test utilities