test_class.declarator: PROPERTIES_YAML = ConfigurationPropertyKey.ACCEPTOR_SIZE.getKey() + ": 16\n" + ConfigurationPropertyKey.SQL_SHOW.getKey() + ": true"
test_class.modifier: private static final
test_class.original_string: private static final String PROPERTIES_YAML = ConfigurationPropertyKey.ACCEPTOR_SIZE.getKey() + ": 16\n" + ConfigurationPropertyKey.SQL_SHOW.getKey() + ": true";
test_class.type: String
test_class.var_name: PROPERTIES_YAML
test_class.declarator: propertiesChangedListener
test_class.modifier: private
test_class.original_string: private PropertiesChangedListener propertiesChangedListener;
test_class.type: PropertiesChangedListener
test_class.var_name: propertiesChangedListener
test_class.declarator: configurationRepository
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private ConfigurationRepository configurationRepository;
test_class.type: ConfigurationRepository
test_class.var_name: configurationRepository
test_class.file: shardingsphere-governance/shardingsphere-governance-core/shardingsphere-governance-core-config/src/test/java/org/apache/shardingsphere/governance/core/config/listener/PropertiesChangedListenerTest.java
test_class.identifier: PropertiesChangedListenerTest
test_case.body: @Test
      public void assertCreateGovernanceEvent() {
          Optional<GovernanceEvent> actual = propertiesChangedListener.createGovernanceEvent(new DataChangedEvent("test", PROPERTIES_YAML, ChangedType.UPDATED));
          assertTrue(actual.isPresent());
          assertThat(((PropertiesChangedEvent) actual.get()).getProps().get(ConfigurationPropertyKey.SQL_SHOW.getKey()), is(true));
          assertThat(((PropertiesChangedEvent) actual.get()).getProps().get(ConfigurationPropertyKey.ACCEPTOR_SIZE.getKey()), is(16));
      }
test_case.class_method_signature: PropertiesChangedListenerTest.assertCreateGovernanceEvent()
test_case.full_signature: @Test public void assertCreateGovernanceEvent()
test_case.identifier: assertCreateGovernanceEvent
test_case.invocations: createGovernanceEvent assertTrue isPresent assertThat get getProps get getKey is assertThat get getProps get getKey is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertCreateGovernanceEvent()
focal_class.file: shardingsphere-governance/shardingsphere-governance-core/shardingsphere-governance-core-config/src/main/java/org/apache/shardingsphere/governance/core/config/listener/PropertiesChangedListener.java
focal_class.identifier: PropertiesChangedListener
focal_class.class_method_signature: PropertiesChangedListener.PropertiesChangedListener(final ConfigurationRepository configurationRepository)
focal_class.full_signature: public  PropertiesChangedListener(final ConfigurationRepository configurationRepository)
focal_class.identifier: PropertiesChangedListener
focal_class.modifiers: public
focal_class.parameters: (final ConfigurationRepository configurationRepository)
focal_class.signature:  PropertiesChangedListener(final ConfigurationRepository configurationRepository)
focal_class.class_method_signature: PropertiesChangedListener.createGovernanceEvent(final DataChangedEvent event)
focal_class.full_signature: @Override protected Optional<GovernanceEvent> createGovernanceEvent(final DataChangedEvent event)
focal_class.identifier: createGovernanceEvent
focal_class.modifiers: @Override protected
focal_class.parameters: (final DataChangedEvent event)
focal_class.return: Optional<GovernanceEvent>
focal_class.signature: Optional<GovernanceEvent> createGovernanceEvent(final DataChangedEvent event)
focal_class.superclass: extends PostGovernanceRepositoryEventListener
focal_method.body: @Override
      protected Optional<GovernanceEvent> createGovernanceEvent(final DataChangedEvent event) {
          return Optional.of(new PropertiesChangedEvent(YamlEngine.unmarshalProperties(event.getValue())));
      }
focal_method.class_method_signature: PropertiesChangedListener.createGovernanceEvent(final DataChangedEvent event)
focal_method.full_signature: @Override protected Optional<GovernanceEvent> createGovernanceEvent(final DataChangedEvent event)
focal_method.identifier: createGovernanceEvent
focal_method.invocations: of unmarshalProperties getValue
focal_method.modifiers: @Override protected
focal_method.parameters: (final DataChangedEvent event)
focal_method.return: Optional<GovernanceEvent>
focal_method.signature: Optional<GovernanceEvent> createGovernanceEvent(final DataChangedEvent event)