use of tech.pegasys.teku.infrastructure.metrics.TekuMetricCategory.EVENTBUS in project teku by ConsenSys.
the class MetricsOptionsTest method metricsCategories_shouldAcceptMultipleValues.
@Test
public void metricsCategories_shouldAcceptMultipleValues() {
TekuConfiguration tekuConfiguration = getTekuConfigurationFromArguments("--metrics-categories", "LIBP2P,NETWORK,EVENTBUS,PROCESS");
final MetricsConfig config = tekuConfiguration.metricsConfig();
assertThat(config.getMetricsCategories()).isEqualTo(Set.of(LIBP2P, NETWORK, EVENTBUS, PROCESS));
assertThat(createConfigBuilder().metrics(b -> b.metricsCategories(Set.of(LIBP2P, NETWORK, EVENTBUS, PROCESS))).build()).usingRecursiveComparison().withComparatorForFields(SET_COMPARATOR, SET_FIELDS).isEqualTo(tekuConfiguration);
}
Aggregations