test_class.file: shardingsphere-proxy/shardingsphere-proxy-backend/src/test/java/org/apache/shardingsphere/proxy/backend/communication/jdbc/recognizer/JDBCDriverURLRecognizerEngineTest.java
test_class.identifier: JDBCDriverURLRecognizerEngineTest
test_case.body: @Test
      public void assertGetJDBCDriverURLRecognizerForH2() {
          assertThat(JDBCDriverURLRecognizerEngine.getJDBCDriverURLRecognizer("jdbc:h2:xxx"), instanceOf(H2Recognizer.class));
      }
test_case.class_method_signature: JDBCDriverURLRecognizerEngineTest.assertGetJDBCDriverURLRecognizerForH2()
test_case.full_signature: @Test public void assertGetJDBCDriverURLRecognizerForH2()
test_case.identifier: assertGetJDBCDriverURLRecognizerForH2
test_case.invocations: assertThat getJDBCDriverURLRecognizer instanceOf
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertGetJDBCDriverURLRecognizerForH2()
focal_class.declarator: JDBC_DRIVER_URL_RECOGNIZERS = new LinkedList<>()
focal_class.modifier: private static final
focal_class.original_string: private static final Collection<JDBCDriverURLRecognizer> JDBC_DRIVER_URL_RECOGNIZERS = new LinkedList<>();
focal_class.type: Collection<JDBCDriverURLRecognizer>
focal_class.var_name: JDBC_DRIVER_URL_RECOGNIZERS
focal_class.file: shardingsphere-proxy/shardingsphere-proxy-backend/src/main/java/org/apache/shardingsphere/proxy/backend/communication/jdbc/recognizer/JDBCDriverURLRecognizerEngine.java
focal_class.identifier: JDBCDriverURLRecognizerEngine
focal_class.class_method_signature: JDBCDriverURLRecognizerEngine.getJDBCDriverURLRecognizer(final String url)
focal_class.full_signature: public static JDBCDriverURLRecognizer getJDBCDriverURLRecognizer(final String url)
focal_class.identifier: getJDBCDriverURLRecognizer
focal_class.modifiers: public static
focal_class.parameters: (final String url)
focal_class.return: JDBCDriverURLRecognizer
focal_class.signature: JDBCDriverURLRecognizer getJDBCDriverURLRecognizer(final String url)
focal_class.class_method_signature: JDBCDriverURLRecognizerEngine.isMatchURL(final String url, final JDBCDriverURLRecognizer jdbcDriverURLRecognizer)
focal_class.full_signature: private static boolean isMatchURL(final String url, final JDBCDriverURLRecognizer jdbcDriverURLRecognizer)
focal_class.identifier: isMatchURL
focal_class.modifiers: private static
focal_class.parameters: (final String url, final JDBCDriverURLRecognizer jdbcDriverURLRecognizer)
focal_class.return: boolean
focal_class.signature: boolean isMatchURL(final String url, final JDBCDriverURLRecognizer jdbcDriverURLRecognizer)
focal_method.body: public static JDBCDriverURLRecognizer getJDBCDriverURLRecognizer(final String url) {
          JDBCDriverURLRecognizer result = JDBC_DRIVER_URL_RECOGNIZERS.stream().filter(each -> isMatchURL(url, each)).findAny()
                  .orElseThrow(() -> new ShardingSphereException("Cannot resolve JDBC url `%s`. Please implements `%s` and add to SPI.", url, JDBCDriverURLRecognizer.class.getName()));
          if (result instanceof JDBCDriverComposeURLRecognizer) {
              return ((JDBCDriverComposeURLRecognizer) result).getDriverURLRecognizer(url);
          }
          return result;
      }
focal_method.class_method_signature: JDBCDriverURLRecognizerEngine.getJDBCDriverURLRecognizer(final String url)
focal_method.full_signature: public static JDBCDriverURLRecognizer getJDBCDriverURLRecognizer(final String url)
focal_method.identifier: getJDBCDriverURLRecognizer
focal_method.invocations: orElseThrow findAny filter stream isMatchURL getName getDriverURLRecognizer
focal_method.modifiers: public static
focal_method.parameters: (final String url)
focal_method.return: JDBCDriverURLRecognizer
focal_method.signature: JDBCDriverURLRecognizer getJDBCDriverURLRecognizer(final String url)