test_class.declarator: nacosConfigEndpoint
test_class.modifier: @Autowired
  	private
test_class.original_string: @Autowired
  	private NacosConfigEndpoint nacosConfigEndpoint;
test_class.type: NacosConfigEndpoint
test_class.var_name: nacosConfigEndpoint
test_class.file: nacos-config-spring-boot-actuator/src/test/java/com/alibaba/boot/nacos/actuate/endpoint/NacosConfigEndpointTest.java
test_class.identifier: NacosConfigEndpointTest
test_case.body: @Test
  	public void testInvoke() {
  		Map<String, Object> metadata = nacosConfigEndpoint.invoke();
  		Assert.assertNotNull(metadata.get("nacosConfigMetadata"));
  	}
test_case.class_method_signature: NacosConfigEndpointTest.testInvoke()
test_case.full_signature: @Test public void testInvoke()
test_case.identifier: testInvoke
test_case.invocations: invoke assertNotNull get
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testInvoke()
focal_class.declarator: applicationContext
focal_class.modifier: @Autowired
  	private
focal_class.original_string: @Autowired
  	private ApplicationContext applicationContext;
focal_class.type: ApplicationContext
focal_class.var_name: applicationContext
focal_class.declarator: nacosConfigMetadataMap = new HashMap<>(8)
focal_class.modifier: private
focal_class.original_string: private Map<String, JSONObject> nacosConfigMetadataMap = new HashMap<>(8);
focal_class.type: Map<String, JSONObject>
focal_class.var_name: nacosConfigMetadataMap
focal_class.file: nacos-config-spring-boot-actuator/src/main/java/com/alibaba/boot/nacos/actuate/endpoint/NacosConfigEndpoint.java
focal_class.identifier: NacosConfigEndpoint
focal_class.interfaces: implements ApplicationListener<NacosConfigMetadataEvent>
focal_class.class_method_signature: NacosConfigEndpoint.invoke()
focal_class.full_signature: @ReadOperation public Map<String, Object> invoke()
focal_class.identifier: invoke
focal_class.modifiers: @ReadOperation public
focal_class.parameters: ()
focal_class.return: Map<String, Object>
focal_class.signature: Map<String, Object> invoke()
focal_class.class_method_signature: NacosConfigEndpoint.onApplicationEvent(NacosConfigMetadataEvent event)
focal_class.full_signature: @Override public void onApplicationEvent(NacosConfigMetadataEvent event)
focal_class.identifier: onApplicationEvent
focal_class.modifiers: @Override public
focal_class.parameters: (NacosConfigMetadataEvent event)
focal_class.return: void
focal_class.signature: void onApplicationEvent(NacosConfigMetadataEvent event)
focal_class.class_method_signature: NacosConfigEndpoint.buildMetadataKey(NacosConfigMetadataEvent event)
focal_class.full_signature: private String buildMetadataKey(NacosConfigMetadataEvent event)
focal_class.identifier: buildMetadataKey
focal_class.modifiers: private
focal_class.parameters: (NacosConfigMetadataEvent event)
focal_class.return: String
focal_class.signature: String buildMetadataKey(NacosConfigMetadataEvent event)
focal_method.body: @ReadOperation
  	public Map<String, Object> invoke() {
  		Map<String, Object> result = new HashMap<>(8);
  
  		if (!(ClassUtils.isAssignable(applicationContext.getEnvironment().getClass(),
  				ConfigurableEnvironment.class))) {
  			result.put("error", "environment type not match ConfigurableEnvironment: "
  					+ applicationContext.getEnvironment().getClass().getName());
  		}
  		else {
  
  			result.put("nacosConfigMetadata", nacosConfigMetadataMap.values());
  
  			result.put("nacosConfigGlobalProperties",
  					PropertiesUtils.extractSafeProperties(applicationContext.getBean(
  							CONFIG_GLOBAL_NACOS_PROPERTIES_BEAN_NAME, Properties.class)));
  		}
  
  		return result;
  	}
focal_method.class_method_signature: NacosConfigEndpoint.invoke()
focal_method.full_signature: @ReadOperation public Map<String, Object> invoke()
focal_method.identifier: invoke
focal_method.invocations: isAssignable getClass getEnvironment put getName getClass getEnvironment put values put extractSafeProperties getBean
focal_method.modifiers: @ReadOperation public
focal_method.parameters: ()
focal_method.return: Map<String, Object>
focal_method.signature: Map<String, Object> invoke()