Skip to content

Commit 531dd6d

Browse files
committed
comment
1 parent 58cc890 commit 531dd6d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

agent/agent-tooling/src/test/java/com/microsoft/applicationinsights/agent/internal/perfcounter/JmxMetricRefresherTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ void test() {
5151

5252
@Test
5353
void shouldFindConfigurationFromAvailableJMxMetric() {
54-
54+
// given
5555
List<Configuration.JmxMetric> jmxMetricsConfig = new ArrayList<>();
5656
Configuration.JmxMetric metric1 = new Configuration.JmxMetric();
5757
metric1.objectName = "objectName1";
@@ -73,8 +73,10 @@ void shouldFindConfigurationFromAvailableJMxMetric() {
7373
new AbstractMap.SimpleEntry<>(
7474
"objectName1", new HashSet<>(Collections.singletonList("attribute1")));
7575

76+
// when
7677
List<Configuration.JmxMetric> result = jmxMetricRefresher.findConfigurations(newly);
7778

79+
// then
7880
assertThat(result).hasSize(1);
7981
Configuration.JmxMetric jmxConfigurationFound = result.get(0);
8082
assertThat(jmxConfigurationFound.objectName).isEqualTo("objectName1");

0 commit comments

Comments
 (0)