File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed
main/java/org/testcontainers/azure
test/java/org/testcontainers/azure Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -15,3 +15,7 @@ dependencies {
1515 testImplementation ' com.azure:azure-messaging-servicebus'
1616 testImplementation ' com.microsoft.sqlserver:mssql-jdbc:13.3.0.jre8-preview'
1717}
18+
19+ tasks. japicmp {
20+ methodExcludes = [" org.testcontainers.azure.ServiceBusEmulatorContainer#withMsSqlServerContainer(org.testcontainers.containers.MSSQLServerContainer)" ]
21+ }
Original file line number Diff line number Diff line change 11package org .testcontainers .azure ;
22
33import org .testcontainers .containers .GenericContainer ;
4- import org .testcontainers .containers .MSSQLServerContainer ;
54import org .testcontainers .containers .wait .strategy .Wait ;
65import org .testcontainers .images .builder .Transferable ;
6+ import org .testcontainers .mssqlserver .MSSQLServerContainer ;
77import org .testcontainers .utility .DockerImageName ;
88import org .testcontainers .utility .LicenseAcceptance ;
99
@@ -25,7 +25,7 @@ public class ServiceBusEmulatorContainer extends GenericContainer<ServiceBusEmul
2525 "mcr.microsoft.com/azure-messaging/servicebus-emulator"
2626 );
2727
28- private MSSQLServerContainer <?> msSqlServerContainer ;
28+ private MSSQLServerContainer msSqlServerContainer ;
2929
3030 /**
3131 * @param dockerImageName The specified docker image name to run
@@ -51,7 +51,7 @@ public ServiceBusEmulatorContainer(final DockerImageName dockerImageName) {
5151 * @param msSqlServerContainer The MS SQL Server container used by Service Bus as a dependency
5252 * @return this
5353 */
54- public ServiceBusEmulatorContainer withMsSqlServerContainer (final MSSQLServerContainer <?> msSqlServerContainer ) {
54+ public ServiceBusEmulatorContainer withMsSqlServerContainer (final MSSQLServerContainer msSqlServerContainer ) {
5555 dependsOn (msSqlServerContainer );
5656 this .msSqlServerContainer = msSqlServerContainer ;
5757 return this ;
Original file line number Diff line number Diff line change 1010import com .github .dockerjava .api .model .Capability ;
1111import org .assertj .core .api .Assertions ;
1212import org .junit .jupiter .api .Test ;
13- import org .testcontainers .containers .MSSQLServerContainer ;
1413import org .testcontainers .containers .Network ;
14+ import org .testcontainers .mssqlserver .MSSQLServerContainer ;
1515import org .testcontainers .utility .MountableFile ;
1616
1717import java .util .List ;
@@ -31,7 +31,7 @@ void testWithClient() {
3131 Network network = Network .newNetwork ();
3232 // }
3333 // sqlContainer {
34- MSSQLServerContainer <?> mssqlServerContainer = new MSSQLServerContainer <> (
34+ MSSQLServerContainer mssqlServerContainer = new MSSQLServerContainer (
3535 "mcr.microsoft.com/mssql/server:2022-CU14-ubuntu-22.04"
3636 )
3737 .acceptLicense ()
You can’t perform that action at this time.
0 commit comments