Skip to content

Commit a145594

Browse files
committed
Implement OracleNullValueEncodeTest
Signed-off-by: Thomas Segismont <tsegismont@gmail.com>
1 parent 08496be commit a145594

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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+
package io.vertx.oracleclient.test.tck;
12+
13+
import io.vertx.ext.unit.junit.VertxUnitRunner;
14+
import io.vertx.oracleclient.test.junit.OracleRule;
15+
import io.vertx.sqlclient.tck.NullValueEncodeTestBase;
16+
import org.junit.ClassRule;
17+
import org.junit.runner.RunWith;
18+
19+
@RunWith(VertxUnitRunner.class)
20+
public class OracleNullValueEncodeTest extends NullValueEncodeTestBase {
21+
22+
@ClassRule
23+
public static OracleRule rule = OracleRule.SHARED_INSTANCE;
24+
25+
@Override
26+
protected void initConnector() {
27+
connector = ClientConfig.POOLED.connect(vertx, rule.options());
28+
}
29+
30+
@Override
31+
protected String statement(String... parts) {
32+
return "SELECT ? FROM dual";
33+
}
34+
}

0 commit comments

Comments
 (0)