2424import static org .junit .jupiter .api .Assertions .assertFalse ;
2525import static org .junit .jupiter .api .Assertions .assertTrue ;
2626
27- @ SuppressWarnings ("resource" )
2827class FirebirdContainerTest {
2928
3029 @ ParameterizedTest
3130 @ MethodSource ("defaultTestImages" )
3231 void testWithSysdbaPassword (DockerImageName imageName ) throws SQLException {
3332 final String sysdbaPassword = "sysdbapassword" ;
34- try (FirebirdContainer <?> container = new FirebirdContainer <> (imageName )
33+ try (FirebirdContainer container = new FirebirdContainer (imageName )
3534 .withSysdbaPassword (sysdbaPassword )) {
3635 container .start ();
3736
@@ -45,7 +44,7 @@ void testWithSysdbaPassword(DockerImageName imageName) throws SQLException {
4544 @ Test
4645 void testImplicitImage () throws SQLException {
4746 final String sysdbaPassword = "sysdbapassword" ;
48- try (FirebirdContainer <?> container = new FirebirdContainer <> ()
47+ try (FirebirdContainer container = new FirebirdContainer ()
4948 .withSysdbaPassword (sysdbaPassword )) {
5049 container .start ();
5150
@@ -63,7 +62,7 @@ void testImplicitImage() throws SQLException {
6362 void testUserPasswordTakesPrecedenceOverWithSysdbaPassword (DockerImageName imageName ) throws SQLException {
6463 final String userPassword = "password1" ;
6564 final String withSysdbaPassword = "password2" ;
66- try (FirebirdContainer <?> container = new FirebirdContainer <> (imageName )
65+ try (FirebirdContainer container = new FirebirdContainer (imageName )
6766 .withUsername ("sysdba" ).withPassword (userPassword ).withSysdbaPassword (withSysdbaPassword )) {
6867 container .start ();
6968
@@ -76,7 +75,7 @@ void testUserPasswordTakesPrecedenceOverWithSysdbaPassword(DockerImageName image
7675 @ ParameterizedTest
7776 @ MethodSource ("defaultTestImages" )
7877 void testWithEnableLegacyClientAuth (DockerImageName imageName ) throws SQLException {
79- try (FirebirdContainer <?> container = new FirebirdContainer <> (imageName )
78+ try (FirebirdContainer container = new FirebirdContainer (imageName )
8079 .withEnableLegacyClientAuth ()) {
8180 container .start ();
8281
@@ -92,7 +91,7 @@ void testWithEnableLegacyClientAuth(DockerImageName imageName) throws SQLExcepti
9291 @ ParameterizedTest
9392 @ MethodSource ("defaultTestImages" )
9493 void testWithEnableLegacyClientAuth_jdbcUrlIncludeAuthPlugins_default (DockerImageName imageName ) {
95- try (FirebirdContainer <?> container = new FirebirdContainer <> (imageName )
94+ try (FirebirdContainer container = new FirebirdContainer (imageName )
9695 .withEnableLegacyClientAuth ()) {
9796 container .start ();
9897
@@ -106,7 +105,7 @@ void testWithEnableLegacyClientAuth_jdbcUrlIncludeAuthPlugins_default(DockerImag
106105 @ ParameterizedTest
107106 @ MethodSource ("defaultTestImages" )
108107 void testWithEnableLegacyClientAuth_jdbcUrlIncludeAuthPlugins_explicitlySet (DockerImageName imageName ) {
109- try (FirebirdContainer <?> container = new FirebirdContainer <> (imageName )
108+ try (FirebirdContainer container = new FirebirdContainer (imageName )
110109 .withEnableLegacyClientAuth ()
111110 .withUrlParam ("authPlugins" , "Legacy_Auth" )) {
112111 container .start ();
@@ -121,7 +120,7 @@ void testWithEnableLegacyClientAuth_jdbcUrlIncludeAuthPlugins_explicitlySet(Dock
121120 @ ParameterizedTest
122121 @ MethodSource ("defaultTestImages" )
123122 void testWithEnableWireCrypt (DockerImageName imageName ) throws SQLException {
124- try (FirebirdContainer <?> container = new FirebirdContainer <> (imageName ).withEnableWireCrypt ()) {
123+ try (FirebirdContainer container = new FirebirdContainer (imageName ).withEnableWireCrypt ()) {
125124 container .start ();
126125
127126 if (FirebirdContainer .isWireEncryptionSupported ()) {
@@ -148,7 +147,7 @@ void testWithEnableWireCrypt(DockerImageName imageName) throws SQLException {
148147 @ Disabled
149148 @ Test
150149 void test259_scImage () throws Exception {
151- try (FirebirdContainer <?> container = new FirebirdContainer <> (JACOB_ALBERTY_259_SC_IMAGE ).withDatabaseName ("test" )) {
150+ try (FirebirdContainer container = new FirebirdContainer (JACOB_ALBERTY_259_SC_IMAGE ).withDatabaseName ("test" )) {
152151 assertEquals ("test" , container .getDatabaseName (), "Expect original database name before start" );
153152
154153 container .start ();
@@ -174,7 +173,7 @@ void test259_scImage() throws Exception {
174173 @ Disabled
175174 @ Test
176175 void test259_ssImage () throws Exception {
177- try (FirebirdContainer <?> container = new FirebirdContainer <> (JACOB_ALBERTY_259_SS_IMAGE ).withDatabaseName ("test" )) {
176+ try (FirebirdContainer container = new FirebirdContainer (JACOB_ALBERTY_259_SS_IMAGE ).withDatabaseName ("test" )) {
178177 assertEquals ("test" , container .getDatabaseName (), "Expect original database name before start" );
179178
180179 container .start ();
@@ -197,7 +196,7 @@ void test259_ssImage() throws Exception {
197196 @ ParameterizedTest
198197 @ MethodSource ("projectCompatibleImages" )
199198 void projectImage_databaseName (DockerImageName imageName ) throws Exception {
200- try (FirebirdContainer <?> container = new FirebirdContainer <> (imageName ).withDatabaseName ("test" )) {
199+ try (FirebirdContainer container = new FirebirdContainer (imageName ).withDatabaseName ("test" )) {
201200 assertEquals ("test" , container .getDatabaseName (), "Expect original database name before start" );
202201
203202 container .start ();
@@ -217,7 +216,7 @@ void projectImage_databaseName(DockerImageName imageName) throws Exception {
217216 @ ParameterizedTest
218217 @ MethodSource ("defaultTestImages" )
219218 void testWithAdditionalUrlParamInJdbcUrl (DockerImageName imageName ) {
220- try (FirebirdContainer <?> firebird = new FirebirdContainer <> (imageName )
219+ try (FirebirdContainer firebird = new FirebirdContainer (imageName )
221220 .withUrlParam ("charSet" , "utf-8" )
222221 .withUrlParam ("blobBufferSize" , "2048" )) {
223222
0 commit comments