@Test void testExtMapBuilderFromConfig() { assertTrue(TrellisExtensions.buildExtensionMapFromConfig(getConfig()).containsKey("acl")); }
public static Map<String, IRI> buildExtensionMapFromConfig(final Config config) { return config.getOptionalValue(CONFIG_HTTP_EXTENSION_GRAPHS, String.class) .map(TrellisExtensions::buildExtensionMap).orElseGet(() -> singletonMap("acl", PreferAccessControl)); }
TrellisExtensions { public static Map<String, IRI> buildExtensionMapFromConfig(final Config config) { return config.getOptionalValue(CONFIG_HTTP_EXTENSION_GRAPHS, String.class) .map(TrellisExtensions::buildExtensionMap).orElseGet(() -> singletonMap("acl", PreferAccessControl)); } }
TrellisExtensions { public static Map<String, IRI> buildExtensionMapFromConfig(final Config config) { return config.getOptionalValue(CONFIG_HTTP_EXTENSION_GRAPHS, String.class) .map(TrellisExtensions::buildExtensionMap).orElseGet(() -> singletonMap("acl", PreferAccessControl)); } private  TrellisExtensions(); }
TrellisExtensions { public static Map<String, IRI> buildExtensionMapFromConfig(final Config config) { return config.getOptionalValue(CONFIG_HTTP_EXTENSION_GRAPHS, String.class) .map(TrellisExtensions::buildExtensionMap).orElseGet(() -> singletonMap("acl", PreferAccessControl)); } private  TrellisExtensions(); static Map<String, IRI> buildExtensionMap(final String extensions); static Map<String, IRI> buildExtensionMapFromConfig(final Config config); }
TrellisExtensions { public static Map<String, IRI> buildExtensionMapFromConfig(final Config config) { return config.getOptionalValue(CONFIG_HTTP_EXTENSION_GRAPHS, String.class) .map(TrellisExtensions::buildExtensionMap).orElseGet(() -> singletonMap("acl", PreferAccessControl)); } private  TrellisExtensions(); static Map<String, IRI> buildExtensionMap(final String extensions); static Map<String, IRI> buildExtensionMapFromConfig(final Config config);  }