File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed
vertx-mysql-client/src/test/java/io/vertx/tests/mysqlclient/tck Expand file tree Collapse file tree 1 file changed +41
-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 .tests .mysqlclient .tck ;
13+
14+ import io .vertx .mysqlclient .MySQLBuilder ;
15+ import io .vertx .sqlclient .ClientBuilder ;
16+ import io .vertx .sqlclient .Pool ;
17+ import io .vertx .sqlclient .SqlConnectOptions ;
18+ import io .vertx .tests .mysqlclient .junit .MySQLRule ;
19+ import io .vertx .tests .sqlclient .tck .MetricsTestBase ;
20+ import org .junit .ClassRule ;
21+
22+ public class MySQLMetricsTest extends MetricsTestBase {
23+
24+ @ ClassRule
25+ public static MySQLRule rule = MySQLRule .SHARED_INSTANCE ;
26+
27+ @ Override
28+ protected SqlConnectOptions connectOptions () {
29+ return rule .options ();
30+ }
31+
32+ @ Override
33+ protected ClientBuilder <Pool > poolBuilder () {
34+ return MySQLBuilder .pool ();
35+ }
36+
37+ @ Override
38+ protected String statement (String ... parts ) {
39+ return String .join ("?" , parts );
40+ }
41+ }
You can’t perform that action at this time.
0 commit comments