test_class.file: shardingsphere-proxy/shardingsphere-proxy-backend/src/test/java/org/apache/shardingsphere/proxy/backend/communication/jdbc/datasource/decorator/HikariJDBCParameterDecoratorTest.java
test_class.identifier: HikariJDBCParameterDecoratorTest
test_case.body: @Test
      public void assertDecoratedHikariDataSource() {
          HikariDataSource dataSource = new HikariDataSource();
          dataSource.setDriverClassName("org.apache.shardingsphere.jdbc.test.MockedDriver");
          dataSource.setJdbcUrl("mock:jdbc");
          HikariDataSource actual = new HikariJDBCParameterDecorator().decorate(dataSource);
          Properties props = actual.getDataSourceProperties();
          assertThat(props.getProperty("useServerPrepStmts"), is(Boolean.TRUE.toString()));
          assertThat(props.getProperty("cachePrepStmts"), is(Boolean.TRUE.toString()));
          assertThat(props.getProperty("prepStmtCacheSize"), is("250"));
          assertThat(props.getProperty("prepStmtCacheSqlLimit"), is("2048"));
          assertThat(props.getProperty("useLocalSessionState"), is(Boolean.TRUE.toString()));
          assertThat(props.getProperty("rewriteBatchedStatements"), is(Boolean.TRUE.toString()));
          assertThat(props.getProperty("cacheResultSetMetadata"), is(Boolean.FALSE.toString()));
          assertThat(props.getProperty("cacheServerConfiguration"), is(Boolean.TRUE.toString()));
          assertThat(props.getProperty("elideSetAutoCommits"), is(Boolean.TRUE.toString()));
          assertThat(props.getProperty("maintainTimeStats"), is(Boolean.FALSE.toString()));
          assertThat(props.getProperty("netTimeoutForStreamingResults"), is("0"));
          assertThat(props.getProperty("tinyInt1isBit"), is(Boolean.FALSE.toString()));
      }
test_case.class_method_signature: HikariJDBCParameterDecoratorTest.assertDecoratedHikariDataSource()
test_case.full_signature: @Test public void assertDecoratedHikariDataSource()
test_case.identifier: assertDecoratedHikariDataSource
test_case.invocations: setDriverClassName setJdbcUrl decorate getDataSourceProperties assertThat getProperty is toString assertThat getProperty is toString assertThat getProperty is assertThat getProperty is assertThat getProperty is toString assertThat getProperty is toString assertThat getProperty is toString assertThat getProperty is toString assertThat getProperty is toString assertThat getProperty is toString assertThat getProperty is assertThat getProperty is toString
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertDecoratedHikariDataSource()
focal_class.file: shardingsphere-proxy/shardingsphere-proxy-backend/src/main/java/org/apache/shardingsphere/proxy/backend/communication/jdbc/datasource/decorator/HikariJDBCParameterDecorator.java
focal_class.identifier: HikariJDBCParameterDecorator
focal_class.interfaces: implements JDBCParameterDecorator<HikariDataSource>
focal_class.class_method_signature: HikariJDBCParameterDecorator.decorate(final HikariDataSource dataSource)
focal_class.full_signature: @Override public HikariDataSource decorate(final HikariDataSource dataSource)
focal_class.identifier: decorate
focal_class.modifiers: @Override public
focal_class.parameters: (final HikariDataSource dataSource)
focal_class.return: HikariDataSource
focal_class.signature: HikariDataSource decorate(final HikariDataSource dataSource)
focal_class.class_method_signature: HikariJDBCParameterDecorator.getType()
focal_class.full_signature: @Override public Class<HikariDataSource> getType()
focal_class.identifier: getType
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Class<HikariDataSource>
focal_class.signature: Class<HikariDataSource> getType()
focal_method.body: @Override
      public HikariDataSource decorate(final HikariDataSource dataSource) {
          dataSource.getDataSourceProperties().setProperty("useServerPrepStmts", Boolean.TRUE.toString());
          dataSource.getDataSourceProperties().setProperty("cachePrepStmts", Boolean.TRUE.toString());
          dataSource.getDataSourceProperties().setProperty("prepStmtCacheSize", "250");
          dataSource.getDataSourceProperties().setProperty("prepStmtCacheSqlLimit", "2048");
          dataSource.getDataSourceProperties().setProperty("useLocalSessionState", Boolean.TRUE.toString());
          dataSource.getDataSourceProperties().setProperty("rewriteBatchedStatements", Boolean.TRUE.toString());
          dataSource.getDataSourceProperties().setProperty("cacheResultSetMetadata", Boolean.FALSE.toString());
          dataSource.getDataSourceProperties().setProperty("cacheServerConfiguration", Boolean.TRUE.toString());
          dataSource.getDataSourceProperties().setProperty("elideSetAutoCommits", Boolean.TRUE.toString());
          dataSource.getDataSourceProperties().setProperty("maintainTimeStats", Boolean.FALSE.toString());
          dataSource.getDataSourceProperties().setProperty("netTimeoutForStreamingResults", "0");
          dataSource.getDataSourceProperties().setProperty("tinyInt1isBit", Boolean.FALSE.toString());
          return new HikariDataSource(dataSource);
      }
focal_method.class_method_signature: HikariJDBCParameterDecorator.decorate(final HikariDataSource dataSource)
focal_method.full_signature: @Override public HikariDataSource decorate(final HikariDataSource dataSource)
focal_method.identifier: decorate
focal_method.invocations: setProperty getDataSourceProperties toString setProperty getDataSourceProperties toString setProperty getDataSourceProperties setProperty getDataSourceProperties setProperty getDataSourceProperties toString setProperty getDataSourceProperties toString setProperty getDataSourceProperties toString setProperty getDataSourceProperties toString setProperty getDataSourceProperties toString setProperty getDataSourceProperties toString setProperty getDataSourceProperties setProperty getDataSourceProperties toString
focal_method.modifiers: @Override public
focal_method.parameters: (final HikariDataSource dataSource)
focal_method.return: HikariDataSource
focal_method.signature: HikariDataSource decorate(final HikariDataSource dataSource)