Class KafkaMetricTest
java.lang.Object
org.apache.kafka.common.metrics.KafkaMetricTest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidVerifies that toString produces a human-readable representation suitable for logging.voidVerifies that toString produces a human-readable representation suitable for logging.void
-
Constructor Details
-
KafkaMetricTest
public KafkaMetricTest()
-
-
Method Details
-
testIsMeasurable
@Test public void testIsMeasurable() -
testIsMeasurableWithGaugeProvider
@Test public void testIsMeasurableWithGaugeProvider() -
testMeasurableValueReturnsZeroWhenNotMeasurable
@Test public void testMeasurableValueReturnsZeroWhenNotMeasurable() -
testKafkaMetricAcceptsNonMeasurableNonGaugeProvider
@Test public void testKafkaMetricAcceptsNonMeasurableNonGaugeProvider() -
testConstructorWithNullProvider
@Test public void testConstructorWithNullProvider() -
testToStringWithLambdaProvider
@Test public void testToStringWithLambdaProvider()Verifies that toString produces a human-readable representation suitable for logging. Note that we skip the metric provider in this case, but this is still a significant improvement over the default Object.toString() output (e.g. "KafkaMetric@62a7d6c6"). -
testToStringWithAnonymousClassProvider
@Test public void testToStringWithAnonymousClassProvider()Verifies that toString produces a human-readable representation suitable for logging. Note that we skip the metric provider in this case, but this is still a significant improvement over the default Object.toString() output (e.g. "KafkaMetric@62a7d6c6"). -
testToStringWithStatProvider
@Test public void testToStringWithStatProvider()
-