test_class.file: shardingsphere-scaling/shardingsphere-scaling-core/src/test/java/org/apache/shardingsphere/scaling/core/metadata/JdbcUriTest.java
test_class.identifier: JdbcUriTest
test_case.body: @Test
      public void assertGetParameters() {
          Map<String, String> parameters = new JdbcUri("jdbc:mysql://127.0.0.1:3306/test_db?useSSL=true&maxReconnects=30").getParameters();
          assertThat(parameters.size(), is(2));
          assertThat(parameters.get("useSSL"), is("true"));
          assertThat(parameters.get("maxReconnects"), is("30"));
      }
test_case.class_method_signature: JdbcUriTest.assertGetParameters()
test_case.full_signature: @Test public void assertGetParameters()
test_case.identifier: assertGetParameters
test_case.invocations: getParameters assertThat size is assertThat get is assertThat get is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertGetParameters()
focal_class.declarator: jdbcUri
focal_class.modifier: private final
focal_class.original_string: private final URI jdbcUri;
focal_class.type: URI
focal_class.var_name: jdbcUri
focal_class.file: shardingsphere-scaling/shardingsphere-scaling-core/src/main/java/org/apache/shardingsphere/scaling/core/metadata/JdbcUri.java
focal_class.identifier: JdbcUri
focal_class.class_method_signature: JdbcUri.JdbcUri(final String jdbcUrl)
focal_class.full_signature: public  JdbcUri(final String jdbcUrl)
focal_class.identifier: JdbcUri
focal_class.modifiers: public
focal_class.parameters: (final String jdbcUrl)
focal_class.signature:  JdbcUri(final String jdbcUrl)
focal_class.class_method_signature: JdbcUri.getScheme()
focal_class.full_signature: public String getScheme()
focal_class.identifier: getScheme
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getScheme()
focal_class.class_method_signature: JdbcUri.getHostname()
focal_class.full_signature: public String getHostname()
focal_class.identifier: getHostname
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getHostname()
focal_class.class_method_signature: JdbcUri.getPort()
focal_class.full_signature: public int getPort()
focal_class.identifier: getPort
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getPort()
focal_class.class_method_signature: JdbcUri.getHost()
focal_class.full_signature: public String getHost()
focal_class.identifier: getHost
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getHost()
focal_class.class_method_signature: JdbcUri.getDatabase()
focal_class.full_signature: public String getDatabase()
focal_class.identifier: getDatabase
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getDatabase()
focal_class.class_method_signature: JdbcUri.getParameters()
focal_class.full_signature: public Map<String, String> getParameters()
focal_class.identifier: getParameters
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Map<String, String>
focal_class.signature: Map<String, String> getParameters()
focal_method.body: public Map<String, String> getParameters() {
          Map<String, String> result = new HashMap<>();
          if (Strings.isNullOrEmpty(jdbcUri.getQuery())) {
              return result;
          }
          String[] parameters = jdbcUri.getQuery().split("&");
          for (String each : parameters) {
              String[] args = each.split("=");
              result.put(args[0], 1 == args.length ? null : args[1]);
          }
          return result;
      }
focal_method.class_method_signature: JdbcUri.getParameters()
focal_method.full_signature: public Map<String, String> getParameters()
focal_method.identifier: getParameters
focal_method.invocations: isNullOrEmpty getQuery split getQuery split put
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: Map<String, String>
focal_method.signature: Map<String, String> getParameters()