Flags { public static boolean useOpenSsl() { if (useOpenSsl != null) { return useOpenSsl; } setUseOpenSslAndDumpOpenSslInfo(); return useOpenSsl; } private  Flags(); static Sampler<Class<? extends Throwable>> verboseExceptionSampler(); static String verboseExceptionSamplerSpec(); static boolean verboseSocketExceptions(); static boolean verboseResponses(); @Nullable static String requestContextStorageProvider(); static boolean useEpoll(); static boolean useOpenSsl(); static boolean dumpOpenSslInfo(); static int maxNumConnections(); static int numCommonWorkers(); static int numCommonBlockingTaskThreads(); static long defaultMaxRequestLength(); static long defaultMaxResponseLength(); static long defaultRequestTimeoutMillis(); static long defaultResponseTimeoutMillis(); static long defaultConnectTimeoutMillis(); static long defaultWriteTimeoutMillis(); static long defaultServerIdleTimeoutMillis(); static long defaultClientIdleTimeoutMillis(); static int defaultHttp1MaxInitialLineLength(); static int defaultHttp1MaxHeaderSize(); static int defaultHttp1MaxChunkSize(); static boolean defaultUseHttp2Preface(); static boolean defaultUseHttp1Pipelining(); static long defaultPingIntervalMillis(); static long defaultMaxServerConnectionAgeMillis(); static int defaultHttp2InitialConnectionWindowSize(); static int defaultHttp2InitialStreamWindowSize(); static int defaultHttp2MaxFrameSize(); static long defaultHttp2MaxStreamsPerConnection(); static long defaultHttp2MaxHeaderListSize(); static String defaultBackoffSpec(); static int defaultMaxTotalAttempts(); @Nullable static String routeCacheSpec(); @Nullable static String routeDecoratorCacheSpec(); @Nullable static String parsedPathCacheSpec(); @Nullable static String headerValueCacheSpec(); @Nullable static String fileServiceCacheSpec(); static List<String> cachedHeaders(); static ExceptionVerbosity annotatedServiceExceptionVerbosity(); @Nullable static Predicate<InetAddress> preferredIpV4Addresses(); static boolean useJdkDnsResolver(); static boolean reportBlockedEventLoop(); static boolean validateHeaders();  }
@Test void openSslAvailable() { assumeThat(osName.startsWith("linux") || osName.startsWith("windows") || osName.startsWith("macosx") || osName.startsWith("osx")).isTrue(); assumeThat(System.getProperty("com.linecorp.armeria.useOpenSsl")).isEqualTo("false"); assertThat(Flags.useOpenSsl()).isTrue(); assertThat(OpenSsl.isAvailable()).isTrue(); }