test_class.declarator: instanceStateChangedListener
test_class.modifier: private
test_class.original_string: private InstanceStateChangedListener instanceStateChangedListener;
test_class.type: InstanceStateChangedListener
test_class.var_name: instanceStateChangedListener
test_class.declarator: registryRepository
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private RegistryRepository registryRepository;
test_class.type: RegistryRepository
test_class.var_name: registryRepository
test_class.file: shardingsphere-governance/shardingsphere-governance-core/shardingsphere-governance-core-registry/src/test/java/org/apache/shardingsphere/governance/core/registry/listener/InstanceStateChangedListenerTest.java
test_class.identifier: InstanceStateChangedListenerTest
test_case.body: @Test
      public void assertCreateGovernanceEventWhenEnabled() {
          Optional<GovernanceEvent> actual = instanceStateChangedListener.createGovernanceEvent(new DataChangedEvent("/test_ds", "", ChangedType.UPDATED));
          assertTrue(actual.isPresent());
          assertFalse(((CircuitStateChangedEvent) actual.get()).isCircuitBreak());
      }
test_case.class_method_signature: InstanceStateChangedListenerTest.assertCreateGovernanceEventWhenEnabled()
test_case.full_signature: @Test public void assertCreateGovernanceEventWhenEnabled()
test_case.identifier: assertCreateGovernanceEventWhenEnabled
test_case.invocations: createGovernanceEvent assertTrue isPresent assertFalse isCircuitBreak get
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertCreateGovernanceEventWhenEnabled()
focal_class.file: shardingsphere-governance/shardingsphere-governance-core/shardingsphere-governance-core-registry/src/main/java/org/apache/shardingsphere/governance/core/registry/listener/InstanceStateChangedListener.java
focal_class.identifier: InstanceStateChangedListener
focal_class.class_method_signature: InstanceStateChangedListener.InstanceStateChangedListener(final RegistryRepository registryRepository)
focal_class.full_signature: public  InstanceStateChangedListener(final RegistryRepository registryRepository)
focal_class.identifier: InstanceStateChangedListener
focal_class.modifiers: public
focal_class.parameters: (final RegistryRepository registryRepository)
focal_class.signature:  InstanceStateChangedListener(final RegistryRepository registryRepository)
focal_class.class_method_signature: InstanceStateChangedListener.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 CircuitStateChangedEvent(RegistryCenterNodeStatus.DISABLED.toString().equalsIgnoreCase(event.getValue())));
      }
focal_method.class_method_signature: InstanceStateChangedListener.createGovernanceEvent(final DataChangedEvent event)
focal_method.full_signature: @Override protected Optional<GovernanceEvent> createGovernanceEvent(final DataChangedEvent event)
focal_method.identifier: createGovernanceEvent
focal_method.invocations: of equalsIgnoreCase toString 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)