/** 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()); }
/** Tests that building a {@link LoadMetadataOptions} with the defaults works. */ @Test public void defaults() { LoadMetadataOptions options = LoadMetadataOptions.defaults(); Assert.assertFalse(options.isRecursive()); }