File tree Expand file tree Collapse file tree 10 files changed +112
-0
lines changed
vertx-db2-client/src/test/java/io/vertx/db2client/tck Expand file tree Collapse file tree 10 files changed +112
-0
lines changed Original file line number Diff line number Diff line change 2
2
3
3
import static org .junit .Assume .assumeFalse ;
4
4
5
+ import org .junit .Before ;
5
6
import org .junit .ClassRule ;
7
+ import org .junit .Rule ;
6
8
import org .junit .Test ;
9
+ import org .junit .rules .TestName ;
7
10
import org .junit .runner .RunWith ;
8
11
9
12
import io .vertx .db2client .junit .DB2Resource ;
16
19
public class DB2BinaryDataTypeDecodeTest extends BinaryDataTypeDecodeTestBase {
17
20
@ ClassRule
18
21
public static DB2Resource rule = DB2Resource .SHARED_INSTANCE ;
22
+
23
+ @ Rule
24
+ public TestName testName = new TestName ();
25
+
26
+ @ Before
27
+ public void printTestName (TestContext ctx ) throws Exception {
28
+ System .out .println (">>> BEGIN " + getClass ().getSimpleName () + "." + testName .getMethodName ());
29
+ }
19
30
20
31
@ Override
21
32
protected void initConnector () {
Original file line number Diff line number Diff line change 1
1
package io .vertx .db2client .tck ;
2
2
3
+ import org .junit .Before ;
3
4
import org .junit .ClassRule ;
5
+ import org .junit .Rule ;
4
6
import org .junit .Test ;
7
+ import org .junit .rules .TestName ;
5
8
import org .junit .runner .RunWith ;
6
9
7
10
import io .vertx .db2client .junit .DB2Resource ;
15
18
public class DB2BinaryDataTypeEncodeTest extends BinaryDataTypeEncodeTestBase {
16
19
@ ClassRule
17
20
public static DB2Resource rule = DB2Resource .SHARED_INSTANCE ;
21
+
22
+ @ Rule
23
+ public TestName testName = new TestName ();
24
+
25
+ @ Before
26
+ public void printTestName (TestContext ctx ) throws Exception {
27
+ System .out .println (">>> BEGIN " + getClass ().getSimpleName () + "." + testName .getMethodName ());
28
+ }
18
29
19
30
@ Override
20
31
protected void initConnector () {
Original file line number Diff line number Diff line change 1
1
package io .vertx .db2client .tck ;
2
2
3
+ import org .junit .Before ;
3
4
import org .junit .ClassRule ;
5
+ import org .junit .Rule ;
6
+ import org .junit .rules .TestName ;
4
7
import org .junit .runner .RunWith ;
5
8
6
9
import io .vertx .db2client .junit .DB2Resource ;
10
+ import io .vertx .ext .unit .TestContext ;
7
11
import io .vertx .ext .unit .junit .VertxUnitRunner ;
8
12
import io .vertx .sqlclient .tck .CollectorTestBase ;
9
13
10
14
@ RunWith (VertxUnitRunner .class )
11
15
public class DB2CollectorTest extends CollectorTestBase {
12
16
@ ClassRule
13
17
public static DB2Resource rule = DB2Resource .SHARED_INSTANCE ;
18
+
19
+ @ Rule
20
+ public TestName testName = new TestName ();
21
+
22
+ @ Before
23
+ public void printTestName (TestContext ctx ) throws Exception {
24
+ System .out .println (">>> BEGIN " + getClass ().getSimpleName () + "." + testName .getMethodName ());
25
+ }
14
26
15
27
@ Override
16
28
protected void initConnector () {
Original file line number Diff line number Diff line change 22
22
import io .vertx .db2client .junit .DB2Resource ;
23
23
import io .vertx .ext .unit .TestContext ;
24
24
import io .vertx .ext .unit .junit .VertxUnitRunner ;
25
+
26
+ import org .junit .Before ;
25
27
import org .junit .ClassRule ;
28
+ import org .junit .Rule ;
26
29
import org .junit .Test ;
30
+ import org .junit .rules .TestName ;
27
31
import org .junit .runner .RunWith ;
28
32
29
33
@ RunWith (VertxUnitRunner .class )
30
34
public class DB2ConnectionTest extends ConnectionTestBase {
31
35
@ ClassRule
32
36
public static DB2Resource rule = DB2Resource .SHARED_INSTANCE ;
37
+
38
+ @ Rule
39
+ public TestName testName = new TestName ();
40
+
41
+ @ Before
42
+ public void printTestName (TestContext ctx ) throws Exception {
43
+ System .out .println (">>> BEGIN " + getClass ().getSimpleName () + "." + testName .getMethodName ());
44
+ }
33
45
34
46
@ Override
35
47
public void setUp () throws Exception {
Original file line number Diff line number Diff line change 5
5
import io .vertx .ext .unit .junit .VertxUnitRunner ;
6
6
import io .vertx .sqlclient .tck .PreparedBatchTestBase ;
7
7
8
+ import org .junit .Before ;
8
9
import org .junit .ClassRule ;
10
+ import org .junit .Rule ;
11
+ import org .junit .rules .TestName ;
9
12
import org .junit .runner .RunWith ;
10
13
11
14
@ RunWith (VertxUnitRunner .class )
12
15
public class DB2PreparedBatchTest extends PreparedBatchTestBase {
13
16
@ ClassRule
14
17
public static DB2Resource rule = DB2Resource .SHARED_INSTANCE ;
18
+
19
+ @ Rule
20
+ public TestName testName = new TestName ();
21
+
22
+ @ Before
23
+ public void printTestName (TestContext ctx ) throws Exception {
24
+ System .out .println (">>> BEGIN " + getClass ().getSimpleName () + "." + testName .getMethodName ());
25
+ }
15
26
16
27
@ Override
17
28
protected void initConnector () {
Original file line number Diff line number Diff line change 1
1
package io .vertx .db2client .tck ;
2
2
3
+ import org .junit .Before ;
3
4
import org .junit .ClassRule ;
4
5
import org .junit .Ignore ;
6
+ import org .junit .Rule ;
5
7
import org .junit .Test ;
8
+ import org .junit .rules .TestName ;
6
9
import org .junit .runner .RunWith ;
7
10
8
11
import io .vertx .db2client .junit .DB2Resource ;
14
17
public class DB2PreparedQueryCachedTest extends PreparedQueryCachedTestBase {
15
18
@ ClassRule
16
19
public static DB2Resource rule = DB2Resource .SHARED_INSTANCE ;
20
+
21
+ @ Rule
22
+ public TestName testName = new TestName ();
23
+
24
+ @ Before
25
+ public void printTestName (TestContext ctx ) throws Exception {
26
+ System .out .println (">>> BEGIN " + getClass ().getSimpleName () + "." + testName .getMethodName ());
27
+ }
17
28
18
29
@ Override
19
30
protected void initConnector () {
Original file line number Diff line number Diff line change 1
1
package io .vertx .db2client .tck ;
2
2
3
+ import org .junit .Before ;
3
4
import org .junit .ClassRule ;
4
5
import org .junit .Ignore ;
6
+ import org .junit .Rule ;
5
7
import org .junit .Test ;
8
+ import org .junit .rules .TestName ;
6
9
7
10
import io .vertx .db2client .junit .DB2Resource ;
8
11
import io .vertx .ext .unit .TestContext ;
@@ -12,6 +15,14 @@ public abstract class DB2PreparedQueryTestBase extends PreparedQueryTestBase {
12
15
13
16
@ ClassRule
14
17
public static DB2Resource rule = DB2Resource .SHARED_INSTANCE ;
18
+
19
+ @ Rule
20
+ public TestName testName = new TestName ();
21
+
22
+ @ Before
23
+ public void printTestName (TestContext ctx ) throws Exception {
24
+ System .out .println (">>> BEGIN " + getClass ().getSimpleName () + "." + testName .getMethodName ());
25
+ }
15
26
16
27
@ Override
17
28
protected void cleanTestTable (TestContext ctx ) {
Original file line number Diff line number Diff line change 1
1
package io .vertx .db2client .tck ;
2
2
3
+ import org .junit .Before ;
3
4
import org .junit .ClassRule ;
4
5
import org .junit .Ignore ;
6
+ import org .junit .Rule ;
5
7
import org .junit .Test ;
8
+ import org .junit .rules .TestName ;
6
9
import org .junit .runner .RunWith ;
7
10
8
11
import io .vertx .db2client .junit .DB2Resource ;
14
17
public class DB2SimpleQueryPooledTest extends SimpleQueryTestBase {
15
18
@ ClassRule
16
19
public static DB2Resource rule = DB2Resource .SHARED_INSTANCE ;
20
+
21
+ @ Rule
22
+ public TestName testName = new TestName ();
23
+
24
+ @ Before
25
+ public void printTestName (TestContext ctx ) throws Exception {
26
+ System .out .println (">>> BEGIN " + getClass ().getSimpleName () + "." + testName .getMethodName ());
27
+ }
17
28
18
29
@ Override
19
30
protected void initConnector () {
Original file line number Diff line number Diff line change 16
16
*/
17
17
package io .vertx .db2client .tck ;
18
18
19
+ import org .junit .Before ;
19
20
import org .junit .ClassRule ;
20
21
import org .junit .Ignore ;
22
+ import org .junit .Rule ;
21
23
import org .junit .Test ;
24
+ import org .junit .rules .TestName ;
22
25
import org .junit .runner .RunWith ;
23
26
24
27
import io .vertx .db2client .junit .DB2Resource ;
@@ -31,6 +34,14 @@ public class DB2SimpleQueryTest extends SimpleQueryTestBase {
31
34
32
35
@ ClassRule
33
36
public static DB2Resource rule = DB2Resource .SHARED_INSTANCE ;
37
+
38
+ @ Rule
39
+ public TestName testName = new TestName ();
40
+
41
+ @ Before
42
+ public void printTestName (TestContext ctx ) throws Exception {
43
+ System .out .println (">>> BEGIN " + getClass ().getSimpleName () + "." + testName .getMethodName ());
44
+ }
34
45
35
46
@ Override
36
47
protected void initConnector () {
Original file line number Diff line number Diff line change 17
17
18
18
import static org .junit .Assume .assumeFalse ;
19
19
20
+ import org .junit .Before ;
20
21
import org .junit .ClassRule ;
22
+ import org .junit .Rule ;
21
23
import org .junit .Test ;
24
+ import org .junit .rules .TestName ;
22
25
import org .junit .runner .RunWith ;
23
26
24
27
import io .vertx .db2client .DB2ConnectOptions ;
@@ -35,6 +38,14 @@ public class DB2TransactionTest extends TransactionTestBase {
35
38
36
39
@ ClassRule
37
40
public static DB2Resource rule = DB2Resource .SHARED_INSTANCE ;
41
+
42
+ @ Rule
43
+ public TestName testName = new TestName ();
44
+
45
+ @ Before
46
+ public void printTestName (TestContext ctx ) throws Exception {
47
+ System .out .println (">>> BEGIN " + getClass ().getSimpleName () + "." + testName .getMethodName ());
48
+ }
38
49
39
50
@ Override
40
51
protected Pool createPool () {
You can’t perform that action at this time.
0 commit comments