Skip to content

Conversation

@gabrielluciano
Copy link
Contributor

Fix getConnectionString javadoc in MongoDBContainer class. The javadoc states that this method points to a database, but as seen in the method implementation, it doesn't.

     /**
     * Gets a connection string url, unlike {@link #getReplicaSetUrl} this does not point to a
     * database
     * @return a connection url pointing to a mongodb instance
     */
    public String getConnectionString() {
        return String.format("mongodb://%s:%d", getHost(), getMappedPort(MongoDBContainerDef.MONGODB_INTERNAL_PORT));
    }

@gabrielluciano gabrielluciano requested a review from a team January 18, 2024 00:32
@eddumelendez eddumelendez added this to the next milestone Mar 15, 2024
@eddumelendez eddumelendez merged commit 13c2641 into testcontainers:main Mar 15, 2024
@eddumelendez
Copy link
Member

Thanks for your contribution, @gabrielluciano !

fokion pushed a commit to fokion/testcontainers-java that referenced this pull request Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants