@Test public void testProcessedCorrectlyOnInitialization() { Map<String, RuntimeData> initData = new TreeMap<>(); initData.put("HOSTNAME", RuntimeData.EMPTY_RUNTIME_DATA); SnapshotRuntimeData snapshotRuntimeData = new SnapshotRuntimeData(initData); assertThat( snapshotRuntimeData.getRuntimeData(), equalTo(ImmutableMap.of("hostname", RuntimeData.EMPTY_RUNTIME_DATA))); assertTrue(snapshotRuntimeData.getRuntimeData() instanceof ImmutableMap); }
@JsonProperty(PROP_RUNTIME_DATA) @VisibleForTesting @Nonnull Map<String, RuntimeData> getRuntimeData() { return _runtimeData; }
SnapshotRuntimeData { @JsonProperty(PROP_RUNTIME_DATA) @VisibleForTesting @Nonnull Map<String, RuntimeData> getRuntimeData() { return _runtimeData; } }
SnapshotRuntimeData { @JsonProperty(PROP_RUNTIME_DATA) @VisibleForTesting @Nonnull Map<String, RuntimeData> getRuntimeData() { return _runtimeData; } @VisibleForTesting  SnapshotRuntimeData(Map<String, RuntimeData> runtimeData); }
SnapshotRuntimeData { @JsonProperty(PROP_RUNTIME_DATA) @VisibleForTesting @Nonnull Map<String, RuntimeData> getRuntimeData() { return _runtimeData; } @VisibleForTesting  SnapshotRuntimeData(Map<String, RuntimeData> runtimeData); static Builder builder(); @JsonIgnore @Nonnull RuntimeData getRuntimeData(String hostname); @JsonIgnore @Nonnull Set<NodeInterfacePair> getBlacklistedInterfaces(); Builder toBuilder(); @Override boolean equals(@Nullable Object obj); @Override int hashCode(); @Override String toString(); }
SnapshotRuntimeData { @JsonProperty(PROP_RUNTIME_DATA) @VisibleForTesting @Nonnull Map<String, RuntimeData> getRuntimeData() { return _runtimeData; } @VisibleForTesting  SnapshotRuntimeData(Map<String, RuntimeData> runtimeData); static Builder builder(); @JsonIgnore @Nonnull RuntimeData getRuntimeData(String hostname); @JsonIgnore @Nonnull Set<NodeInterfacePair> getBlacklistedInterfaces(); Builder toBuilder(); @Override boolean equals(@Nullable Object obj); @Override int hashCode(); @Override String toString(); static final SnapshotRuntimeData EMPTY_SNAPSHOT_RUNTIME_DATA; }