コード例 #1
0
  /** Tests getting and setting fields. */
  @Test
  public void fields() {
    Random random = new Random();
    boolean recursive = random.nextBoolean();

    LoadMetadataOptions options = LoadMetadataOptions.defaults();
    options.setRecursive(recursive);

    Assert.assertEquals(recursive, options.isRecursive());
  }
コード例 #2
0
  /** Tests that building a {@link LoadMetadataOptions} with the defaults works. */
  @Test
  public void defaults() {
    LoadMetadataOptions options = LoadMetadataOptions.defaults();

    Assert.assertFalse(options.isRecursive());
  }