Skip to content

Commit 978cd52

Browse files
authored
Add MySQLMetricsTest (#1573)
Closes #1532 Signed-off-by: Thomas Segismont <tsegismont@gmail.com>
1 parent 2559388 commit 978cd52

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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+
}

0 commit comments

Comments
 (0)