38
38
import org .bson .BsonString ;
39
39
import org .bson .Document ;
40
40
import org .bson .json .JsonWriterSettings ;
41
- import org .junit .BeforeClass ;
42
- import org .junit .ClassRule ;
43
- import org .junit .Ignore ;
44
- import org .junit .Test ;
41
+ import org .junit .jupiter . api . BeforeAll ;
42
+ import org .junit .jupiter . api . Disabled ;
43
+ import org .junit .jupiter . api . Test ;
44
+ import org .junit .jupiter . api . extension . RegisterExtension ;
45
45
46
46
import java .io .IOException ;
47
47
import java .io .UncheckedIOException ;
@@ -81,12 +81,12 @@ public class MongoAdapterTest implements SchemaFactory {
81
81
/** Number of records in local file */
82
82
protected static final int ZIPS_SIZE = 149 ;
83
83
84
- @ ClassRule
84
+ @ RegisterExtension
85
85
public static final MongoDatabasePolicy POLICY = MongoDatabasePolicy .create ();
86
86
87
87
private static MongoSchema schema ;
88
88
89
- @ BeforeClass
89
+ @ BeforeAll
90
90
public static void setUp () throws Exception {
91
91
MongoDatabase database = POLICY .database ();
92
92
@@ -207,7 +207,7 @@ private CalciteAssert.AssertThat assertModel(URL url) {
207
207
"{$project: {STATE: '$state', ID: '$_id'}}" ));
208
208
}
209
209
210
- @ Ignore
210
+ @ Disabled
211
211
@ Test public void testFilterSort () {
212
212
// LONGITUDE and LATITUDE are null because of CALCITE-194.
213
213
Util .discard (Bug .CALCITE_194_FIXED );
@@ -253,7 +253,7 @@ private CalciteAssert.AssertThat assertModel(URL url) {
253
253
"CITY=LAWTON; LONGITUDE=null; LATITUDE=null; POP=45542; STATE=OK; ID=73505" );
254
254
}
255
255
256
- @ Ignore ("broken; [CALCITE-2115] is logged to fix it" )
256
+ @ Disabled ("broken; [CALCITE-2115] is logged to fix it" )
257
257
@ Test public void testUnionPlan () {
258
258
assertModel (MODEL )
259
259
.query ("select * from \" sales_fact_1997\" \n "
@@ -272,7 +272,7 @@ private CalciteAssert.AssertThat assertModel(URL url) {
272
272
"product_id=337" , "product_id=1512" ));
273
273
}
274
274
275
- @ Ignore (
275
+ @ Disabled (
276
276
"java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Double" )
277
277
@ Test public void testFilterUnionPlan () {
278
278
assertModel (MODEL )
@@ -494,7 +494,7 @@ private CalciteAssert.AssertThat assertModel(URL url) {
494
494
"{$sort: {STATE: 1}}" ));
495
495
}
496
496
497
- @ Ignore ("https://issues.apache.org/jira/browse/CALCITE-270" )
497
+ @ Disabled ("https://issues.apache.org/jira/browse/CALCITE-270" )
498
498
@ Test public void testGroupByHaving2 () {
499
499
assertModel (MODEL )
500
500
.query ("select state, count(*) as c from zips\n "
@@ -553,7 +553,7 @@ private CalciteAssert.AssertThat assertModel(URL url) {
553
553
"{$project: {C: 1, STATE: 1, CITY: 1}}" ));
554
554
}
555
555
556
- @ Ignore ("broken; [CALCITE-2115] is logged to fix it" )
556
+ @ Disabled ("broken; [CALCITE-2115] is logged to fix it" )
557
557
@ Test public void testDistinctCount () {
558
558
assertModel (MODEL )
559
559
.query ("select state, count(distinct city) as cdc from zips\n "
@@ -605,7 +605,7 @@ private CalciteAssert.AssertThat assertModel(URL url) {
605
605
"{$limit: 5}" ));
606
606
}
607
607
608
- @ Ignore ("broken; [CALCITE-2115] is logged to fix it" )
608
+ @ Disabled ("broken; [CALCITE-2115] is logged to fix it" )
609
609
@ Test public void testProject () {
610
610
assertModel (MODEL )
611
611
.query ("select state, city, 0 as zero from zips order by state, city" )
0 commit comments