verify(classHashHelper, times(1)).registerInstrumentationDefinition(fqnCaptor.getValue(), instrumentationResult); ArgumentCaptor<SpecialSensorConfig> sscCaptor = ArgumentCaptor.forClass(SpecialSensorConfig.class); verify(hookDispatcherMapper, times(1)).addMapping(eq(sscId), sscCaptor.capture()); assertThat(sscCaptor.getValue().getId(), is(sscId)); assertThat(sscCaptor.getValue().getSensor(), is(methodSensor));
verify(hookDispatcherMapper, times(1)).addMapping(eq(rscId), rscCaptor.capture()); assertThat(rscCaptor.getValue().getId(), is(rscId)); assertThat(rscCaptor.getValue().getMethodSensors(), hasSize(1));
verify(classHashHelper, times(1)).registerInstrumentationDefinition(fqnCaptor.getValue(), instrumentationResult); ArgumentCaptor<RegisteredSensorConfig> rscCaptor = ArgumentCaptor.forClass(RegisteredSensorConfig.class); verify(hookDispatcherMapper, times(1)).addMapping(eq(rscId), rscCaptor.capture()); assertThat(rscCaptor.getValue().getId(), is(rscId)); assertThat(rscCaptor.getValue().getMethodSensors(), hasSize(1));
verify(classHashHelper, times(1)).registerInstrumentationDefinition(fqnCaptor.getValue(), instrumentationResult); ArgumentCaptor<RegisteredSensorConfig> rscCaptor = ArgumentCaptor.forClass(RegisteredSensorConfig.class); verify(hookDispatcherMapper, times(1)).addMapping(eq(rscId), rscCaptor.capture()); assertThat(rscCaptor.getValue().getId(), is(rscId)); assertThat(rscCaptor.getValue().getMethodSensors(), hasSize(1));
verify(hookDispatcherMapper, times(1)).addMapping(eq(rscId), rscCaptor.capture()); assertThat(rscCaptor.getValue().getId(), is(rscId)); assertThat(rscCaptor.getValue().getMethodSensors(), hasSize(1));
verify(classHashHelper, times(1)).registerInstrumentationDefinition(fqnCaptor.getValue(), instrumentationResult); ArgumentCaptor<RegisteredSensorConfig> rscCaptor = ArgumentCaptor.forClass(RegisteredSensorConfig.class); verify(hookDispatcherMapper, times(1)).addMapping(eq(rscId), rscCaptor.capture()); assertThat(rscCaptor.getValue().getId(), is(rscId)); assertThat(rscCaptor.getValue().getMethodSensors(), hasSize(1));
if (null != registeredSensorConfig) { SensorInstrumentationPoint sensorInstrumentationPoint = config.getSensorInstrumentationPoint(); hookDispatcherMapper.addMapping(registeredSensorConfig.getId(), registeredSensorConfig); methodToSensorMap.put(Long.valueOf(registeredSensorConfig.getId()), sensorInstrumentationPoint.getSensorIds()); if (null != specialSensorConfig) { SpecialInstrumentationPoint specialInstrumentationPoint = config.getSpecialInstrumentationPoint(); hookDispatcherMapper.addMapping(specialSensorConfig.getId(), specialSensorConfig); methodToSensorMap.put(Long.valueOf(specialSensorConfig.getId()), new long[] { specialInstrumentationPoint.getSensorId() });