@@ -90,8 +90,8 @@ public void getMetaDataTest() throws SQLException {
9090 @ Test
9191 public void setReadOnlyTest () throws SQLException {
9292 Connection localConnection = this .getJdbcConnection ();
93- localConnection .setReadOnly (true );
94- Assert .assertThrows (SQLFeatureNotSupportedException .class , () -> localConnection .setReadOnly (false ));
93+ localConnection .setReadOnly (false );
94+ Assert .assertThrows (SQLFeatureNotSupportedException .class , () -> localConnection .setReadOnly (true ));
9595 }
9696
9797 @ Test
@@ -177,25 +177,25 @@ public void releaseSavepointTest() throws SQLException {
177177 @ Test
178178 public void createClobTest () throws SQLException {
179179 Connection localConnection = this .getJdbcConnection ();
180- Assert .assertThrows ( SQLFeatureNotSupportedException . class , () -> localConnection .createClob ());
180+ Assert .assertNotNull ( localConnection .createClob ());
181181 }
182182
183183 @ Test
184184 public void createBlobTest () throws SQLException {
185185 Connection localConnection = this .getJdbcConnection ();
186- Assert .assertThrows ( SQLFeatureNotSupportedException . class , () -> localConnection .createBlob ());
186+ Assert .assertNotNull ( localConnection .createBlob ());
187187 }
188188
189189 @ Test
190190 public void createNClobTest () throws SQLException {
191191 Connection localConnection = this .getJdbcConnection ();
192- Assert .assertThrows ( SQLFeatureNotSupportedException . class , () -> localConnection .createNClob ());
192+ Assert .assertNotNull ( localConnection .createNClob ());
193193 }
194194
195195 @ Test
196196 public void createSQLXMLTest () throws SQLException {
197197 Connection localConnection = this .getJdbcConnection ();
198- Assert .assertThrows (SQLFeatureNotSupportedException .class , () -> localConnection . createSQLXML () );
198+ Assert .assertThrows (SQLFeatureNotSupportedException .class , localConnection :: createSQLXML );
199199 }
200200
201201 @ Test
@@ -206,23 +206,20 @@ public void isValidTest() throws SQLException {
206206 }
207207
208208 @ Test
209- public void setClientInfoTest () throws SQLException {
210- Connection localConnection = this .getJdbcConnection ();
211- Assert .assertThrows (SQLClientInfoException .class , () -> localConnection .setClientInfo ("key" , "value" ));
212- Assert .assertThrows (SQLClientInfoException .class , () -> localConnection .setClientInfo (new Properties ()));
213- }
214-
215- @ Test
216- public void getClientInfoTest () throws SQLException {
209+ public void setAndGetClientInfoTest () throws SQLException {
217210 Connection localConnection = this .getJdbcConnection ();
218211 Assert .assertNull (localConnection .getClientInfo ("key" ));
219- Assert .assertNotNull (localConnection .getClientInfo ());
212+ localConnection .setClientInfo ("key" , "value" );
213+ Assert .assertNotNull (localConnection .getClientInfo ("key" ));
220214 }
221215
216+
222217 @ Test
223218 public void createArrayOfTest () throws SQLException {
224219 Connection localConnection = this .getJdbcConnection ();
225- Assert .assertNull (localConnection .createArrayOf ("type-name" , new Object [] { 1 , 2 , 3 }));
220+ Array array = localConnection .createArrayOf ("type-name" , new Object [] { 1 , 2 , 3 });
221+ Assert .assertNotNull (array );
222+ Assert .assertEquals (array .getArray (), new Object [] { 1 , 2 , 3 });
226223 }
227224
228225 @ Test
0 commit comments