@Test public void builderShouldCORSDisabled() { assertThat( WebAdminConfiguration.builder() .enabled() .port(PORT) .corsDisabled() .build()) .extracting(WebAdminConfiguration::isEnableCORS) .isEqualTo(false); }
public static Builder builder() { return new Builder(); }
WebAdminConfiguration { public static Builder builder() { return new Builder(); } }
WebAdminConfiguration { public static Builder builder() { return new Builder(); } @VisibleForTesting  WebAdminConfiguration(boolean enabled, Optional<PortSupplier> port, Optional<TlsConfiguration> tlsConfiguration,
                          boolean enableCORS, String urlCORSOrigin, String host, List<String> additionalRoutes); }
WebAdminConfiguration { public static Builder builder() { return new Builder(); } @VisibleForTesting  WebAdminConfiguration(boolean enabled, Optional<PortSupplier> port, Optional<TlsConfiguration> tlsConfiguration,
                          boolean enableCORS, String urlCORSOrigin, String host, List<String> additionalRoutes); static Builder builder(); List<String> getAdditionalRoutes(); boolean isEnabled(); String getUrlCORSOrigin(); PortSupplier getPort(); TlsConfiguration getTlsConfiguration(); boolean isEnableCORS(); boolean isTlsEnabled(); String getHost(); @Override final boolean equals(Object o); @Override final int hashCode(); }
WebAdminConfiguration { public static Builder builder() { return new Builder(); } @VisibleForTesting  WebAdminConfiguration(boolean enabled, Optional<PortSupplier> port, Optional<TlsConfiguration> tlsConfiguration,
                          boolean enableCORS, String urlCORSOrigin, String host, List<String> additionalRoutes); static Builder builder(); List<String> getAdditionalRoutes(); boolean isEnabled(); String getUrlCORSOrigin(); PortSupplier getPort(); TlsConfiguration getTlsConfiguration(); boolean isEnableCORS(); boolean isTlsEnabled(); String getHost(); @Override final boolean equals(Object o); @Override final int hashCode(); static final boolean DEFAULT_CORS_DISABLED; static final String CORS_ALL_ORIGINS; static final String DEFAULT_HOST; static final WebAdminConfiguration DISABLED_CONFIGURATION; static final WebAdminConfiguration TEST_CONFIGURATION; }