test_class.declarator: SOURCE_URI = "mongodb://user-name-1234-5678-abcdefg:password12345@" +
              "first.hostname.com:10000,second.hostname.com:20000,third.hostname.com:30000,fourth.hostname" +
              "fifth.hostname.com:50000,sixth.hostname.com:60000,seventh:hostname.com:70000" +
              "/database-name?replicaSet=streched-0003&maxIdleTimeMS=240000&w=majority" +
              "&readPreference=primaryPreferred&ssl=true&sslInvalidHostNameAllowed=true"
test_class.modifier: private static final
test_class.original_string: private static final String SOURCE_URI = "mongodb://user-name-1234-5678-abcdefg:password12345@" +
              "first.hostname.com:10000,second.hostname.com:20000,third.hostname.com:30000,fourth.hostname" +
              "fifth.hostname.com:50000,sixth.hostname.com:60000,seventh:hostname.com:70000" +
              "/database-name?replicaSet=streched-0003&maxIdleTimeMS=240000&w=majority" +
              "&readPreference=primaryPreferred&ssl=true&sslInvalidHostNameAllowed=true";
test_class.type: String
test_class.var_name: SOURCE_URI
test_class.declarator: KEY_URI = MongoDbUriSupplier.URI_CONFIG_PATH
test_class.modifier: private static final
test_class.original_string: private static final String KEY_URI = MongoDbUriSupplier.URI_CONFIG_PATH;
test_class.type: String
test_class.var_name: KEY_URI
test_class.declarator: KEY_OPTIONS = DefaultOptionsConfig.CONFIG_PATH
test_class.modifier: private static final
test_class.original_string: private static final String KEY_OPTIONS = DefaultOptionsConfig.CONFIG_PATH;
test_class.type: String
test_class.var_name: KEY_OPTIONS
test_class.file: services/utils/persistence/src/test/java/org/eclipse/ditto/services/utils/persistence/mongo/config/MongoDbUriSupplierTest.java
test_class.identifier: MongoDbUriSupplierTest
test_case.body: @Test
      public void tryToGetInstanceWithConfigWithoutUriPath() {
          assertThatExceptionOfType(DittoConfigError.class)
                  .isThrownBy(() -> MongoDbUriSupplier.of(ConfigFactory.empty()))
                  .withMessage("MongoDB Config did not have path <%s>!", KEY_URI)
                  .withNoCause();
      }
test_case.class_method_signature: MongoDbUriSupplierTest.tryToGetInstanceWithConfigWithoutUriPath()
test_case.full_signature: @Test public void tryToGetInstanceWithConfigWithoutUriPath()
test_case.identifier: tryToGetInstanceWithConfigWithoutUriPath
test_case.invocations: withNoCause withMessage isThrownBy assertThatExceptionOfType of empty
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void tryToGetInstanceWithConfigWithoutUriPath()
focal_class.declarator: URI_CONFIG_PATH = "uri"
focal_class.modifier: static final
focal_class.original_string: static final String URI_CONFIG_PATH = "uri";
focal_class.type: String
focal_class.var_name: URI_CONFIG_PATH
focal_class.declarator: mongoDbConfig
focal_class.modifier: private final
focal_class.original_string: private final Config mongoDbConfig;
focal_class.type: Config
focal_class.var_name: mongoDbConfig
focal_class.declarator: mongoDbSourceUri
focal_class.modifier: private final
focal_class.original_string: private final URI mongoDbSourceUri;
focal_class.type: URI
focal_class.var_name: mongoDbSourceUri
focal_class.file: services/utils/persistence/src/main/java/org/eclipse/ditto/services/utils/persistence/mongo/config/MongoDbUriSupplier.java
focal_class.identifier: MongoDbUriSupplier
focal_class.interfaces: implements Supplier<String>
focal_class.class_method_signature: MongoDbUriSupplier.MongoDbUriSupplier(final Config theMongoDbConfig, final URI theMongoDbSourceUri)
focal_class.full_signature: private  MongoDbUriSupplier(final Config theMongoDbConfig, final URI theMongoDbSourceUri)
focal_class.identifier: MongoDbUriSupplier
focal_class.modifiers: private
focal_class.parameters: (final Config theMongoDbConfig, final URI theMongoDbSourceUri)
focal_class.signature:  MongoDbUriSupplier(final Config theMongoDbConfig, final URI theMongoDbSourceUri)
focal_class.class_method_signature: MongoDbUriSupplier.of(final Config mongoDbConfig)
focal_class.full_signature: static MongoDbUriSupplier of(final Config mongoDbConfig)
focal_class.identifier: of
focal_class.modifiers: static
focal_class.parameters: (final Config mongoDbConfig)
focal_class.return: MongoDbUriSupplier
focal_class.signature: MongoDbUriSupplier of(final Config mongoDbConfig)
focal_class.class_method_signature: MongoDbUriSupplier.validate(@Nullable final Config mongoDbConfig)
focal_class.full_signature: private static void validate(@Nullable final Config mongoDbConfig)
focal_class.identifier: validate
focal_class.modifiers: private static
focal_class.parameters: (@Nullable final Config mongoDbConfig)
focal_class.return: void
focal_class.signature: void validate(@Nullable final Config mongoDbConfig)
focal_class.class_method_signature: MongoDbUriSupplier.tryToGetMongoDbSourceUri(final String mongoDbUriString)
focal_class.full_signature: private static URI tryToGetMongoDbSourceUri(final String mongoDbUriString)
focal_class.identifier: tryToGetMongoDbSourceUri
focal_class.modifiers: private static
focal_class.parameters: (final String mongoDbUriString)
focal_class.return: URI
focal_class.signature: URI tryToGetMongoDbSourceUri(final String mongoDbUriString)
focal_class.class_method_signature: MongoDbUriSupplier.get()
focal_class.full_signature: @Override public String get()
focal_class.identifier: get
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String get()
focal_class.class_method_signature: MongoDbUriSupplier.tryToCreateMongoDbTargetUri()
focal_class.full_signature: private URI tryToCreateMongoDbTargetUri()
focal_class.identifier: tryToCreateMongoDbTargetUri
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: URI
focal_class.signature: URI tryToCreateMongoDbTargetUri()
focal_class.class_method_signature: MongoDbUriSupplier.createMongoDbTargetUri()
focal_class.full_signature: private URI createMongoDbTargetUri()
focal_class.identifier: createMongoDbTargetUri
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: URI
focal_class.signature: URI createMongoDbTargetUri()
focal_class.class_method_signature: MongoDbUriSupplier.getTargetQueryComponent()
focal_class.full_signature: @Nullable private String getTargetQueryComponent()
focal_class.identifier: getTargetQueryComponent
focal_class.modifiers: @Nullable private
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getTargetQueryComponent()
focal_method.body: static MongoDbUriSupplier of(final Config mongoDbConfig) {
          validate(mongoDbConfig);
  
          return new MongoDbUriSupplier(mongoDbConfig, tryToGetMongoDbSourceUri(mongoDbConfig.getString(URI_CONFIG_PATH)));
      }
focal_method.class_method_signature: MongoDbUriSupplier.of(final Config mongoDbConfig)
focal_method.full_signature: static MongoDbUriSupplier of(final Config mongoDbConfig)
focal_method.identifier: of
focal_method.invocations: validate tryToGetMongoDbSourceUri getString
focal_method.modifiers: static
focal_method.parameters: (final Config mongoDbConfig)
focal_method.return: MongoDbUriSupplier
focal_method.signature: MongoDbUriSupplier of(final Config mongoDbConfig)