@@ -127,15 +127,11 @@ public class CallableStatementTest extends AESetup {
127127 */
128128 @ BeforeAll
129129 public static void initValues () throws Exception {
130- dropAll ();
131-
132130 numericValues = createNumericValues (nullable );
133131 byteValues = createBinaryValues (nullable );
134132 dateValues = createTemporalTypesCallableStatement (nullable );
135133 charValues = createCharValues (nullable );
136- }
137134
138- void initCallableStatementTest () throws Exception {
139135 dropAll ();
140136
141137 createSPTables (cekJks );
@@ -165,39 +161,27 @@ public static void dropAll() throws Exception {
165161 @ ParameterizedTest
166162 @ MethodSource ("enclaveParams" )
167163 public void testMultiInsertionSelection (String serverName , String url , String protocol ) throws Exception {
168- checkAESetup (serverName , url , protocol );
169- initCallableStatementTest ();
170-
171164 createMultiInsertionSelection ();
172165 MultiInsertionSelection ();
173166 }
174167
175168 @ ParameterizedTest
176169 @ MethodSource ("enclaveParams" )
177170 public void testInputProcedureNumeric (String serverName , String url , String protocol ) throws Exception {
178- checkAESetup (serverName , url , protocol );
179- initCallableStatementTest ();
180-
181171 createInputProcedure ();
182172 testInputProcedure ("{call " + inputProcedure + "(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}" , numericValues );
183173 }
184174
185175 @ ParameterizedTest
186176 @ MethodSource ("enclaveParams" )
187177 public void testInputProcedureChar (String serverName , String url , String protocol ) throws Exception {
188- checkAESetup (serverName , url , protocol );
189- initCallableStatementTest ();
190-
191178 createInputProcedure2 ();
192179 testInputProcedure2 ("{call " + inputProcedure2 + "(?,?,?,?,?,?,?,?)}" );
193180 }
194181
195182 @ ParameterizedTest
196183 @ MethodSource ("enclaveParams" )
197184 public void testEncryptedOutputNumericParams (String serverName , String url , String protocol ) throws Exception {
198- checkAESetup (serverName , url , protocol );
199- initCallableStatementTest ();
200-
201185 createOutputProcedure ();
202186 testOutputProcedureRandomOrder ("{call " + outputProcedure + "(?,?,?,?,?,?,?)}" , numericValues );
203187 testOutputProcedureInorder ("{call " + outputProcedure + "(?,?,?,?,?,?,?)}" , numericValues );
@@ -209,9 +193,6 @@ public void testEncryptedOutputNumericParams(String serverName, String url, Stri
209193 @ MethodSource ("enclaveParams" )
210194 public void testUnencryptedAndEncryptedNumericOutputParams (String serverName , String url ,
211195 String protocol ) throws Exception {
212- checkAESetup (serverName , url , protocol );
213- initCallableStatementTest ();
214-
215196 createOutputProcedure2 ();
216197 testOutputProcedure2RandomOrder ("{call " + outputProcedure2 + "(?,?,?,?,?,?,?,?,?,?)}" , numericValues );
217198 testOutputProcedure2Inorder ("{call " + outputProcedure2 + "(?,?,?,?,?,?,?,?,?,?)}" , numericValues );
@@ -222,9 +203,6 @@ public void testUnencryptedAndEncryptedNumericOutputParams(String serverName, St
222203 @ MethodSource ("enclaveParams" )
223204 public void testEncryptedOutputParamsFromDifferentTables (String serverName , String url ,
224205 String protocol ) throws Exception {
225- checkAESetup (serverName , url , protocol );
226- initCallableStatementTest ();
227-
228206 createOutputProcedure3 ();
229207 testOutputProcedure3RandomOrder ("{call " + outputProcedure3 + "(?,?)}" );
230208 testOutputProcedure3Inorder ("{call " + outputProcedure3 + "(?,?)}" );
@@ -234,9 +212,6 @@ public void testEncryptedOutputParamsFromDifferentTables(String serverName, Stri
234212 @ ParameterizedTest
235213 @ MethodSource ("enclaveParams" )
236214 public void testInOutProcedure (String serverName , String url , String protocol ) throws Exception {
237- checkAESetup (serverName , url , protocol );
238- initCallableStatementTest ();
239-
240215 createInOutProcedure ();
241216 testInOutProcedure ("{call " + inoutProcedure + "(?)}" );
242217 testInOutProcedure ("exec " + inoutProcedure + " ?" );
@@ -245,19 +220,13 @@ public void testInOutProcedure(String serverName, String url, String protocol) t
245220 @ ParameterizedTest
246221 @ MethodSource ("enclaveParams" )
247222 public void testMixedProcedure (String serverName , String url , String protocol ) throws Exception {
248- checkAESetup (serverName , url , protocol );
249- initCallableStatementTest ();
250-
251223 createMixedProcedure ();
252224 testMixedProcedure ("{ ? = call " + mixedProcedure + "(?,?,?)}" );
253225 }
254226
255227 @ ParameterizedTest
256228 @ MethodSource ("enclaveParams" )
257229 public void testUnencryptedAndEncryptedIOParams (String serverName , String url , String protocol ) throws Exception {
258- checkAESetup (serverName , url , protocol );
259- initCallableStatementTest ();
260-
261230 // unencrypted input and output parameter
262231 // encrypted input and output parameter
263232 createMixedProcedure2 ();
@@ -268,9 +237,6 @@ public void testUnencryptedAndEncryptedIOParams(String serverName, String url, S
268237 @ ParameterizedTest
269238 @ MethodSource ("enclaveParams" )
270239 public void testUnencryptedIOParams (String serverName , String url , String protocol ) throws Exception {
271- checkAESetup (serverName , url , protocol );
272- initCallableStatementTest ();
273-
274240 createMixedProcedure3 ();
275241 testMixedProcedure3RandomOrder ("{call " + mixedProcedure3 + "(?,?,?,?)}" );
276242 testMixedProcedure3Inorder ("{call " + mixedProcedure3 + "(?,?,?,?)}" );
@@ -280,9 +246,6 @@ public void testUnencryptedIOParams(String serverName, String url, String protoc
280246 @ ParameterizedTest
281247 @ MethodSource ("enclaveParams" )
282248 public void testVariousIOParams (String serverName , String url , String protocol ) throws Exception {
283- checkAESetup (serverName , url , protocol );
284- initCallableStatementTest ();
285-
286249 createmixedProcedureNumericPrecisionScale ();
287250 testmixedProcedureNumericPrecisionScaleInorder ("{call " + mixedProcedureNumericPrecisionScale + "(?,?,?,?)}" );
288251 testmixedProcedureNumericPrecisionScaleParameterName (
@@ -292,9 +255,6 @@ public void testVariousIOParams(String serverName, String url, String protocol)
292255 @ ParameterizedTest
293256 @ MethodSource ("enclaveParams" )
294257 public void testOutputProcedureChar (String serverName , String url , String protocol ) throws Exception {
295- checkAESetup (serverName , url , protocol );
296- initCallableStatementTest ();
297-
298258 createOutputProcedureChar ();
299259 testOutputProcedureCharInorder ("{call " + outputProcedureChar + "(?,?,?,?,?,?,?,?,?)}" );
300260 testOutputProcedureCharInorderObject ("{call " + outputProcedureChar + "(?,?,?,?,?,?,?,?,?)}" );
@@ -303,9 +263,6 @@ public void testOutputProcedureChar(String serverName, String url, String protoc
303263 @ ParameterizedTest
304264 @ MethodSource ("enclaveParams" )
305265 public void testOutputProcedureNumeric (String serverName , String url , String protocol ) throws Exception {
306- checkAESetup (serverName , url , protocol );
307- initCallableStatementTest ();
308-
309266 createOutputProcedureNumeric ();
310267 testOutputProcedureNumericInorder ("{call " + outputProcedureNumeric + "(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}" );
311268 testcoerctionsOutputProcedureNumericInorder (
@@ -315,9 +272,6 @@ public void testOutputProcedureNumeric(String serverName, String url, String pro
315272 @ ParameterizedTest
316273 @ MethodSource ("enclaveParams" )
317274 public void testOutputProcedureBinary (String serverName , String url , String protocol ) throws Exception {
318- checkAESetup (serverName , url , protocol );
319- initCallableStatementTest ();
320-
321275 createOutputProcedureBinary ();
322276 testOutputProcedureBinaryInorder ("{call " + outputProcedureBinary + "(?,?,?,?,?)}" );
323277 testOutputProcedureBinaryInorderObject ("{call " + outputProcedureBinary + "(?,?,?,?,?)}" );
@@ -327,9 +281,6 @@ public void testOutputProcedureBinary(String serverName, String url, String prot
327281 @ ParameterizedTest
328282 @ MethodSource ("enclaveParams" )
329283 public void testOutputProcedureDate (String serverName , String url , String protocol ) throws Exception {
330- checkAESetup (serverName , url , protocol );
331- initCallableStatementTest ();
332-
333284 createOutputProcedureDate ();
334285 testOutputProcedureDateInorder ("{call " + outputProcedureDate + "(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}" );
335286 testOutputProcedureDateInorderObject ("{call " + outputProcedureDate + "(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}" );
@@ -338,9 +289,6 @@ public void testOutputProcedureDate(String serverName, String url, String protoc
338289 @ ParameterizedTest
339290 @ MethodSource ("enclaveParams" )
340291 public void testMixedProcedureDateScale (String serverName , String url , String protocol ) throws Exception {
341- checkAESetup (serverName , url , protocol );
342- initCallableStatementTest ();
343-
344292 createMixedProcedureDateScale ();
345293 testMixedProcedureDateScaleInorder ("{call " + outputProcedureDateScale + "(?,?,?,?,?,?)}" );
346294 testMixedProcedureDateScaleWithParameterName ("{call " + outputProcedureDateScale + "(?,?,?,?,?,?)}" );
@@ -349,19 +297,13 @@ public void testMixedProcedureDateScale(String serverName, String url, String pr
349297 @ ParameterizedTest
350298 @ MethodSource ("enclaveParams" )
351299 public void testOutputProcedureBatch (String serverName , String url , String protocol ) throws Exception {
352- checkAESetup (serverName , url , protocol );
353- initCallableStatementTest ();
354-
355300 createOutputProcedureBatch ();
356301 testOutputProcedureBatchInorder ("{call " + outputProcedureBatch + "(?,?,?,?)}" );
357302 }
358303
359304 @ ParameterizedTest
360305 @ MethodSource ("enclaveParams" )
361306 public void testOutputProcedure4 (String serverName , String url , String protocol ) throws Exception {
362- checkAESetup (serverName , url , protocol );
363- initCallableStatementTest ();
364-
365307 createOutputProcedure4 ();
366308 }
367309
0 commit comments