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-sql-parser/shardingsphere-sql-parser-binder/src/test/java/org/apache/shardingsphere/sql/parser/binder/metadata/util/JdbcUtilTest.java
test_class.identifier: JdbcUtilTest
test_case.body: @Test
      public void assertOracleGetSchema() {
          String schema = JdbcUtil.getSchema(connection, "Oracle");
          assertThat(schema, is(nullValue()));
      }
test_case.class_method_signature: JdbcUtilTest.assertOracleGetSchema()
test_case.full_signature: @Test public void assertOracleGetSchema()
test_case.identifier: assertOracleGetSchema
test_case.invocations: getSchema assertThat is nullValue
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertOracleGetSchema()
focal_class.file: shardingsphere-sql-parser/shardingsphere-sql-parser-binder/src/main/java/org/apache/shardingsphere/sql/parser/binder/metadata/util/JdbcUtil.java
focal_class.identifier: JdbcUtil
focal_class.class_method_signature: JdbcUtil.getSchema(final Connection connection, final String databaseType)
focal_class.full_signature: public static String getSchema(final Connection connection, final String databaseType)
focal_class.identifier: getSchema
focal_class.modifiers: public static
focal_class.parameters: (final Connection connection, final String databaseType)
focal_class.return: String
focal_class.signature: String getSchema(final Connection connection, final String databaseType)
focal_method.body: public static String getSchema(final Connection connection, final String databaseType) {
          String result = null;
          try {
              if ("Oracle".equals(databaseType)) {
                  DatabaseMetaData metaData = connection.getMetaData();
                  if (null != metaData) {
                      return Optional.ofNullable(metaData.getUserName()).map(String::toUpperCase).orElse(null);
                  } else {
                      return null;
                  }
              }
              result = connection.getSchema();
          } catch (final SQLException ignore) {
          }
          return result;
      }
focal_method.class_method_signature: JdbcUtil.getSchema(final Connection connection, final String databaseType)
focal_method.full_signature: public static String getSchema(final Connection connection, final String databaseType)
focal_method.identifier: getSchema
focal_method.invocations: equals getMetaData orElse map ofNullable getUserName getSchema
focal_method.modifiers: public static
focal_method.parameters: (final Connection connection, final String databaseType)
focal_method.return: String
focal_method.signature: String getSchema(final Connection connection, final String databaseType)