@Test @InSequence(2) public void callGaugesAfterSetterCalls() { assertThat("Gauges are not registered correctly", registry.getGauges(), allOf(hasKey(PARENT_GAUGE_NAME), hasKey(CHILD_GAUGE_NAME))); @SuppressWarnings("unchecked") Gauge<Long> parentGauge = registry.getGauges().get(PARENT_GAUGE_NAME); @SuppressWarnings("unchecked") Gauge<Long> childGauge = registry.getGauges().get(CHILD_GAUGE_NAME); long parentValue = Math.round(Math.random() * Long.MAX_VALUE); bean.setGauge(parentValue); long childValue = Math.round(Math.random() * Long.MAX_VALUE); bean.setChildGauge(childValue); assertThat("Gauge values are incorrect", Arrays.asList(parentGauge.getValue(), childGauge.getValue()), contains(parentValue, childValue)); }
public void setChildGauge(long childGauge) { this.childGauge = childGauge; }
InheritedGaugeMethodBean extends GaugeMethodBean { public void setChildGauge(long childGauge) { this.childGauge = childGauge; } }
InheritedGaugeMethodBean extends GaugeMethodBean { public void setChildGauge(long childGauge) { this.childGauge = childGauge; }  }
InheritedGaugeMethodBean extends GaugeMethodBean { public void setChildGauge(long childGauge) { this.childGauge = childGauge; }  @Gauge(name = "childGaugeMethod") long getChildGauge(); void setChildGauge(long childGauge); }
InheritedGaugeMethodBean extends GaugeMethodBean { public void setChildGauge(long childGauge) { this.childGauge = childGauge; }  @Gauge(name = "childGaugeMethod") long getChildGauge(); void setChildGauge(long childGauge);  }