test_class.declarator: bitronixXATransactionManager = new BitronixXATransactionManager()
test_class.modifier: private final
test_class.original_string: private final BitronixXATransactionManager bitronixXATransactionManager = new BitronixXATransactionManager();
test_class.type: BitronixXATransactionManager
test_class.var_name: bitronixXATransactionManager
test_class.declarator: bitronixTransactionManager
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private BitronixTransactionManager bitronixTransactionManager;
test_class.type: BitronixTransactionManager
test_class.var_name: bitronixTransactionManager
test_class.declarator: xaDataSource
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private XADataSource xaDataSource;
test_class.type: XADataSource
test_class.var_name: xaDataSource
test_class.file: shardingsphere-transaction/shardingsphere-transaction-2pc/shardingsphere-transaction-xa/shardingsphere-transaction-xa-bitronix/src/test/java/org/apache/shardingsphere/transaction/xa/bitronix/manager/BitronixXATransactionManagerTest.java
test_class.identifier: BitronixXATransactionManagerTest
test_case.body: @Test
      public void assertEnlistResource() throws SystemException, RollbackException {
          SingleXAResource singleXAResource = mock(SingleXAResource.class);
          Transaction transaction = mock(Transaction.class);
          when(bitronixTransactionManager.getTransaction()).thenReturn(transaction);
          bitronixXATransactionManager.enlistResource(singleXAResource);
          verify(transaction).enlistResource(singleXAResource);
      }
test_case.class_method_signature: BitronixXATransactionManagerTest.assertEnlistResource()
test_case.full_signature: @Test public void assertEnlistResource()
test_case.identifier: assertEnlistResource
test_case.invocations: mock mock thenReturn when getTransaction enlistResource enlistResource verify
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertEnlistResource()
focal_class.declarator: bitronixTransactionManager = TransactionManagerServices.getTransactionManager()
focal_class.modifier: private final
focal_class.original_string: private final BitronixTransactionManager bitronixTransactionManager = TransactionManagerServices.getTransactionManager();
focal_class.type: BitronixTransactionManager
focal_class.var_name: bitronixTransactionManager
focal_class.file: shardingsphere-transaction/shardingsphere-transaction-2pc/shardingsphere-transaction-xa/shardingsphere-transaction-xa-bitronix/src/main/java/org/apache/shardingsphere/transaction/xa/bitronix/manager/BitronixXATransactionManager.java
focal_class.identifier: BitronixXATransactionManager
focal_class.interfaces: implements XATransactionManager
focal_class.class_method_signature: BitronixXATransactionManager.init()
focal_class.full_signature: @Override public void init()
focal_class.identifier: init
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void init()
focal_class.class_method_signature: BitronixXATransactionManager.registerRecoveryResource(final String dataSourceName, final XADataSource xaDataSource)
focal_class.full_signature: @SneakyThrows(RecoveryException.class) @Override public void registerRecoveryResource(final String dataSourceName, final XADataSource xaDataSource)
focal_class.identifier: registerRecoveryResource
focal_class.modifiers: @SneakyThrows(RecoveryException.class) @Override public
focal_class.parameters: (final String dataSourceName, final XADataSource xaDataSource)
focal_class.return: void
focal_class.signature: void registerRecoveryResource(final String dataSourceName, final XADataSource xaDataSource)
focal_class.class_method_signature: BitronixXATransactionManager.removeRecoveryResource(final String dataSourceName, final XADataSource xaDataSource)
focal_class.full_signature: @Override public void removeRecoveryResource(final String dataSourceName, final XADataSource xaDataSource)
focal_class.identifier: removeRecoveryResource
focal_class.modifiers: @Override public
focal_class.parameters: (final String dataSourceName, final XADataSource xaDataSource)
focal_class.return: void
focal_class.signature: void removeRecoveryResource(final String dataSourceName, final XADataSource xaDataSource)
focal_class.class_method_signature: BitronixXATransactionManager.enlistResource(final SingleXAResource singleXAResource)
focal_class.full_signature: @SneakyThrows({SystemException.class, RollbackException.class}) @Override public void enlistResource(final SingleXAResource singleXAResource)
focal_class.identifier: enlistResource
focal_class.modifiers: @SneakyThrows({SystemException.class, RollbackException.class}) @Override public
focal_class.parameters: (final SingleXAResource singleXAResource)
focal_class.return: void
focal_class.signature: void enlistResource(final SingleXAResource singleXAResource)
focal_class.class_method_signature: BitronixXATransactionManager.getTransactionManager()
focal_class.full_signature: @Override public TransactionManager getTransactionManager()
focal_class.identifier: getTransactionManager
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: TransactionManager
focal_class.signature: TransactionManager getTransactionManager()
focal_class.class_method_signature: BitronixXATransactionManager.close()
focal_class.full_signature: @Override public void close()
focal_class.identifier: close
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void close()
focal_method.body: @SneakyThrows({SystemException.class, RollbackException.class})
      @Override
      public void enlistResource(final SingleXAResource singleXAResource) {
          bitronixTransactionManager.getTransaction().enlistResource(singleXAResource);
      }
focal_method.class_method_signature: BitronixXATransactionManager.enlistResource(final SingleXAResource singleXAResource)
focal_method.full_signature: @SneakyThrows({SystemException.class, RollbackException.class}) @Override public void enlistResource(final SingleXAResource singleXAResource)
focal_method.identifier: enlistResource
focal_method.invocations: enlistResource getTransaction
focal_method.modifiers: @SneakyThrows({SystemException.class, RollbackException.class}) @Override public
focal_method.parameters: (final SingleXAResource singleXAResource)
focal_method.return: void
focal_method.signature: void enlistResource(final SingleXAResource singleXAResource)