@Test public void alwaysSaveThreadDumpsToTheSameFile() throws IOException { ServiceDiscoveringAtlasSupplier supplier = createAtlasSupplier(kvsConfig); String firstPath = ServiceDiscoveringAtlasSupplier.saveThreadDumps(); String secondPath = ServiceDiscoveringAtlasSupplier.saveThreadDumps(); assertThat(firstPath).isEqualTo(secondPath); }
@VisibleForTesting static String saveThreadDumps() throws IOException { File file = getTempFile(); return saveThreadDumpsToFile(file); }
ServiceDiscoveringAtlasSupplier { @VisibleForTesting static String saveThreadDumps() throws IOException { File file = getTempFile(); return saveThreadDumpsToFile(file); } }
ServiceDiscoveringAtlasSupplier { @VisibleForTesting static String saveThreadDumps() throws IOException { File file = getTempFile(); return saveThreadDumpsToFile(file); } ServiceDiscoveringAtlasSupplier(
            MetricsManager metricsManager,
            KeyValueServiceConfig config,
            Supplier<Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
            Optional<LeaderConfig> leaderConfig,
            Optional<String> namespace,
            Optional<TableReference> timestampTable,
            boolean initializeAsync,
            LongSupplier timestampSupplier); }
ServiceDiscoveringAtlasSupplier { @VisibleForTesting static String saveThreadDumps() throws IOException { File file = getTempFile(); return saveThreadDumpsToFile(file); } ServiceDiscoveringAtlasSupplier(
            MetricsManager metricsManager,
            KeyValueServiceConfig config,
            Supplier<Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
            Optional<LeaderConfig> leaderConfig,
            Optional<String> namespace,
            Optional<TableReference> timestampTable,
            boolean initializeAsync,
            LongSupplier timestampSupplier); KeyValueService getKeyValueService(); synchronized ManagedTimestampService getManagedTimestampService(); synchronized TimestampStoreInvalidator getTimestampStoreInvalidator(); }
ServiceDiscoveringAtlasSupplier { @VisibleForTesting static String saveThreadDumps() throws IOException { File file = getTempFile(); return saveThreadDumpsToFile(file); } ServiceDiscoveringAtlasSupplier(
            MetricsManager metricsManager,
            KeyValueServiceConfig config,
            Supplier<Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
            Optional<LeaderConfig> leaderConfig,
            Optional<String> namespace,
            Optional<TableReference> timestampTable,
            boolean initializeAsync,
            LongSupplier timestampSupplier); KeyValueService getKeyValueService(); synchronized ManagedTimestampService getManagedTimestampService(); synchronized TimestampStoreInvalidator getTimestampStoreInvalidator();  }