/*
 * Licensed to the University of California, Berkeley under one or more contributor license
 * agreements. See the NOTICE file distributed with this work for additional information regarding
 * copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance with the License. You may obtain a
 * copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 */

package tachyon.client.file.options;

import java.util.Random;

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

/**
 * Tests for the {@link CompleteFileOptions} class.
 */
public class CompleteFileOptionsTest {

  /**
   * Tests that building a {@link CompleteFileOptions} works.
   */
  @Test
  public void builderTest() {
    Random random = new Random();
    long ufsLength = random.nextLong();
    CompleteFileOptions options = CompleteFileOptions.defaults().setUfsLength(ufsLength);

    Assert.assertEquals(ufsLength, options.getUfsLength());
  }

  /**
   * Tests that building a {@link CompleteFileOptions} with the defaults works.
   */
  @Test
  public void defaultsTest() {
    CompleteFileOptions options = CompleteFileOptions.defaults();

    Assert.assertEquals(0, options.getUfsLength());
  }
}

@@ -828,34 +828,8 @@
 s;%0A%0A
-import java.util.Random;%0A%0A
 impo
@@ -976,351 +976,8 @@
 t %7B%0A
-%0A  /**%0A   * Tests that building a %7B@link CompleteFileOptions%7D works.%0A   */%0A  @Test%0A  public void builderTest() %7B%0A    Random random = new Random();%0A    long ufsLength = random.nextLong();%0A    CompleteFileOptions options = CompleteFileOptions.defaults().setUfsLength(ufsLength);%0A%0A    Assert.assertEquals(ufsLength, options.getUfsLength());%0A  %7D%0A%0A
   /*

Remove old unit test.