Skip to content

Replace deprecated MSSQLServerContainer in ServiceBusEmulatorContainer#11379

Closed
minsang-alt wants to merge 1 commit intotestcontainers:mainfrom
minsang-alt:fix/11373-remove-deprecated-mssqlservercontainer
Closed

Replace deprecated MSSQLServerContainer in ServiceBusEmulatorContainer#11379
minsang-alt wants to merge 1 commit intotestcontainers:mainfrom
minsang-alt:fix/11373-remove-deprecated-mssqlservercontainer

Conversation

@minsang-alt
Copy link

Description

Replace deprecated org.testcontainers.containers.MSSQLServerContainer with
org.testcontainers.mssqlserver.MSSQLServerContainer in ServiceBusEmulatorContainer.

Changes

  • Updated import to use the new non-deprecated package
  • Removed generic type parameters (<?>) as the new class doesn't use them

Related Issue

Fixes #11373

Breaking Change

This changes the method signature of withMsSqlServerContainer().
Users passing the deprecated MSSQLServerContainer will need to migrate
to the new class. Since the old class is already deprecated, this aligns
with the intended migration path.

@minsang-alt minsang-alt requested a review from a team as a code owner January 1, 2026 11:31
@eddumelendez
Copy link
Member

Thanks for your contribution, @minsang-alt. But I am closing this one in favor of #11223, which was submitted first.

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.

[Bug]: ServiceBusEmulatorContainer uses the deprecated org.testcontainers.containers.MSSQLServerContainer

3 participants