test_class.declarator: MOCK_KEY = "DUBBO_KEY"
test_class.modifier: private static final
test_class.original_string: private static final String MOCK_KEY = "DUBBO_KEY";
test_class.type: String
test_class.var_name: MOCK_KEY
test_class.declarator: MOCK_VALUE = "mockValue"
test_class.modifier: private static final
test_class.original_string: private static final String MOCK_VALUE = "mockValue";
test_class.type: String
test_class.var_name: MOCK_VALUE
test_class.file: dubbo-common/src/test/java/org/apache/dubbo/common/config/EnvironmentConfigurationTest.java
test_class.identifier: EnvironmentConfigurationTest
test_case.body: @Test
      public void testGetInternalProperty() {
          Map<String, String> map = new HashMap<>();
          map.put(MOCK_KEY, MOCK_VALUE);
          try {
              setEnv(map);
              EnvironmentConfiguration configuration = new EnvironmentConfiguration();
              // this UT maybe only works on particular platform, assert only when value is not null.
              Assertions.assertEquals(MOCK_VALUE, configuration.getInternalProperty("dubbo.key"));
              Assertions.assertEquals(MOCK_VALUE, configuration.getInternalProperty("key"));
              Assertions.assertEquals(MOCK_VALUE, configuration.getInternalProperty("dubbo_key"));
              Assertions.assertEquals(MOCK_VALUE, configuration.getInternalProperty(MOCK_KEY));
          } catch (Exception e) {
              // skip test.
              e.printStackTrace();
          }
      }
test_case.class_method_signature: EnvironmentConfigurationTest.testGetInternalProperty()
test_case.full_signature: @Test public void testGetInternalProperty()
test_case.identifier: testGetInternalProperty
test_case.invocations: put setEnv assertEquals getInternalProperty assertEquals getInternalProperty assertEquals getInternalProperty assertEquals getInternalProperty printStackTrace
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetInternalProperty()
focal_class.file: dubbo-common/src/main/java/org/apache/dubbo/common/config/EnvironmentConfiguration.java
focal_class.identifier: EnvironmentConfiguration
focal_class.interfaces: implements Configuration
focal_class.class_method_signature: EnvironmentConfiguration.getInternalProperty(String key)
focal_class.full_signature: @Override public Object getInternalProperty(String key)
focal_class.identifier: getInternalProperty
focal_class.modifiers: @Override public
focal_class.parameters: (String key)
focal_class.return: Object
focal_class.signature: Object getInternalProperty(String key)
focal_method.body: @Override
      public Object getInternalProperty(String key) {
          String value = System.getenv(key);
          if (StringUtils.isEmpty(value)) {
              value = System.getenv(StringUtils.toOSStyleKey(key));
          }
          return value;
      }
focal_method.class_method_signature: EnvironmentConfiguration.getInternalProperty(String key)
focal_method.full_signature: @Override public Object getInternalProperty(String key)
focal_method.identifier: getInternalProperty
focal_method.invocations: getenv isEmpty getenv toOSStyleKey
focal_method.modifiers: @Override public
focal_method.parameters: (String key)
focal_method.return: Object
focal_method.signature: Object getInternalProperty(String key)