File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed
vertx-mssql-client/src/test/java/io/vertx/mssqlclient/tck Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (c) 2011-2021 Contributors to the Eclipse Foundation
3
+ *
4
+ * This program and the accompanying materials are made available under the
5
+ * terms of the Eclipse Public License 2.0 which is available at
6
+ * http://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0
7
+ * which is available at https://www.apache.org/licenses/LICENSE-2.0.
8
+ *
9
+ * SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
10
+ */
11
+
12
+ package io .vertx .mssqlclient .tck ;
13
+
14
+ import io .vertx .core .Vertx ;
15
+ import io .vertx .mssqlclient .MSSQLPool ;
16
+ import io .vertx .mssqlclient .junit .MSSQLRule ;
17
+ import io .vertx .sqlclient .Pool ;
18
+ import io .vertx .sqlclient .PoolOptions ;
19
+ import io .vertx .sqlclient .tck .MetricsTestBase ;
20
+ import org .junit .ClassRule ;
21
+
22
+ public class MSSQLMetricsTest extends MetricsTestBase {
23
+
24
+ @ ClassRule
25
+ public static MSSQLRule rule = MSSQLRule .SHARED_INSTANCE ;
26
+
27
+ @ Override
28
+ protected Pool createPool (Vertx vertx ) {
29
+ return MSSQLPool .pool (vertx , rule .options (), new PoolOptions ());
30
+ }
31
+
32
+ @ Override
33
+ protected String statement (String ... parts ) {
34
+ StringBuilder sb = new StringBuilder ();
35
+ for (int i = 0 ; i < parts .length ; i ++) {
36
+ if (i > 0 ) {
37
+ sb .append ("@p" ).append ((i ));
38
+ }
39
+ sb .append (parts [i ]);
40
+ }
41
+ return sb .toString ();
42
+ }
43
+ }
You can’t perform that action at this time.
0 commit comments