@Test void testLoadingFileWithEmptyObject(final @TempDir Path tempDir) throws IOException { final URL url = getClass().getResource("/emptyObject.json"); final Path tempFile = tempDir.resolve("text4.txt"); final ConfigurationLoader<BasicConfigurationNode> loader = GsonConfigurationLoader.builder() .setSource(() -> new BufferedReader(new InputStreamReader(url.openStream(), StandardCharsets.UTF_8))) .setSink(AtomicFiles.createAtomicWriterFactory(tempFile, StandardCharsets.UTF_8)).setLenient(true).build(); final ConfigurationNode node = loader.load(loader.defaultOptions().withMapFactory(MapFactories.sortedNatural())); assertEquals(ImmutableMap.of(), node.getValue()); assertTrue(node.isMap()); }
@NonNull public static Builder builder() { return new Builder(); }
GsonConfigurationLoader extends AbstractConfigurationLoader<BasicConfigurationNode> { @NonNull public static Builder builder() { return new Builder(); } }
GsonConfigurationLoader extends AbstractConfigurationLoader<BasicConfigurationNode> { @NonNull public static Builder builder() { return new Builder(); } private  GsonConfigurationLoader(final Builder builder); }
GsonConfigurationLoader extends AbstractConfigurationLoader<BasicConfigurationNode> { @NonNull public static Builder builder() { return new Builder(); } private  GsonConfigurationLoader(final Builder builder); @NonNull static Builder builder(); @Override BasicConfigurationNode createNode(ConfigurationOptions options); }
GsonConfigurationLoader extends AbstractConfigurationLoader<BasicConfigurationNode> { @NonNull public static Builder builder() { return new Builder(); } private  GsonConfigurationLoader(final Builder builder); @NonNull static Builder builder(); @Override BasicConfigurationNode createNode(ConfigurationOptions options);  }