test_class.declarator: MINIMUM_VERSION_OF_XA_SUPPORTED = 8171
test_class.modifier: private static final
test_class.original_string: private static final short MINIMUM_VERSION_OF_XA_SUPPORTED = 8171;
test_class.type: short
test_class.var_name: MINIMUM_VERSION_OF_XA_SUPPORTED
test_class.declarator: xaDataSource
test_class.modifier: private
test_class.original_string: private XADataSource xaDataSource;
test_class.type: XADataSource
test_class.var_name: xaDataSource
test_class.declarator: connection
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private Connection connection;
test_class.type: Connection
test_class.var_name: connection
test_class.file: shardingsphere-transaction/shardingsphere-transaction-2pc/shardingsphere-transaction-xa/shardingsphere-transaction-xa-core/src/test/java/org/apache/shardingsphere/transaction/xa/jta/connection/dialect/OracleXAConnectionWrapperTest.java
test_class.identifier: OracleXAConnectionWrapperTest
test_case.body: @Test
      @Ignore("oracle jdbc driver is not import because of the limitations of license")
      public void assertCreateOracleConnection() throws SQLException {
          XAConnection actual = new OracleXAConnectionWrapper().wrap(xaDataSource, connection);
          assertThat(actual.getXAResource(), instanceOf(XAResource.class));
          assertThat(actual.getConnection(), instanceOf(Connection.class));
      }
test_case.class_method_signature: OracleXAConnectionWrapperTest.assertCreateOracleConnection()
test_case.full_signature: @Test @Ignore("oracle jdbc driver is not import because of the limitations of license") public void assertCreateOracleConnection()
test_case.identifier: assertCreateOracleConnection
test_case.invocations: wrap assertThat getXAResource instanceOf assertThat getConnection instanceOf
test_case.modifiers: @Test @Ignore("oracle jdbc driver is not import because of the limitations of license") public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertCreateOracleConnection()
focal_class.file: shardingsphere-transaction/shardingsphere-transaction-2pc/shardingsphere-transaction-xa/shardingsphere-transaction-xa-core/src/main/java/org/apache/shardingsphere/transaction/xa/jta/connection/dialect/OracleXAConnectionWrapper.java
focal_class.identifier: OracleXAConnectionWrapper
focal_class.interfaces: implements XAConnectionWrapper
focal_class.class_method_signature: OracleXAConnectionWrapper.wrap(final XADataSource xaDataSource, final Connection connection)
focal_class.full_signature: @SuppressWarnings("unchecked") @SneakyThrows({SQLException.class, ReflectiveOperationException.class}) @Override public XAConnection wrap(final XADataSource xaDataSource, final Connection connection)
focal_class.identifier: wrap
focal_class.modifiers: @SuppressWarnings("unchecked") @SneakyThrows({SQLException.class, ReflectiveOperationException.class}) @Override public
focal_class.parameters: (final XADataSource xaDataSource, final Connection connection)
focal_class.return: XAConnection
focal_class.signature: XAConnection wrap(final XADataSource xaDataSource, final Connection connection)
focal_method.body: @SuppressWarnings("unchecked")
      @SneakyThrows({SQLException.class, ReflectiveOperationException.class})
      @Override
      public XAConnection wrap(final XADataSource xaDataSource, final Connection connection) {
          Connection physicalConnection = (Connection) connection.unwrap(Class.forName("oracle.jdbc.internal.OracleConnection"));
          Class clazz = Class.forName("oracle.jdbc.xa.client.OracleXAConnection");
          Constructor constructor = clazz.getConstructor(Connection.class);
          return (XAConnection) constructor.newInstance(physicalConnection);
      }
focal_method.class_method_signature: OracleXAConnectionWrapper.wrap(final XADataSource xaDataSource, final Connection connection)
focal_method.full_signature: @SuppressWarnings("unchecked") @SneakyThrows({SQLException.class, ReflectiveOperationException.class}) @Override public XAConnection wrap(final XADataSource xaDataSource, final Connection connection)
focal_method.identifier: wrap
focal_method.invocations: unwrap forName forName getConstructor newInstance
focal_method.modifiers: @SuppressWarnings("unchecked") @SneakyThrows({SQLException.class, ReflectiveOperationException.class}) @Override public
focal_method.parameters: (final XADataSource xaDataSource, final Connection connection)
focal_method.return: XAConnection
focal_method.signature: XAConnection wrap(final XADataSource xaDataSource, final Connection connection)