/** * Finds the proper sensor id from the agent configuration used for the * {@link SpecialMethodSensorAssignment}. * * @param agentConfiguration * {@link AgentConfig} * @return {@link MethodSensorTypeConfig} for the given assignment. */ private MethodSensorTypeConfig getSensorTypeConfigFromConfiguration(AgentConfig agentConfiguration) { IMethodSensorConfig methodSensorConfig = functionalAssignment.getSpecialMethodSensorConfig(); return agentConfiguration.getSpecialMethodSensorTypeConfig(methodSensorConfig.getClassName()); } }
when(agentConfiguration.getSpecialMethodSensorTypeConfig(sensorClassName)).thenReturn(methodSensorTypeConfig);