@@ -267,9 +267,6 @@ private static boolean isUsingCloudDevel() {
267
267
268
268
@ Test
269
269
public void bindFloat32 () {
270
- assumeFalse ("Emulator does not support FLOAT32 yet" , isUsingEmulator ());
271
- assumeTrue ("FLOAT32 is currently only supported in cloud-devel" , isUsingCloudDevel ());
272
-
273
270
Struct row =
274
271
execute (Statement .newBuilder (selectValueQuery ).bind ("p1" ).to (2.0f ), Type .float32 ());
275
272
assertThat (row .isNull (0 )).isFalse ();
@@ -278,9 +275,6 @@ public void bindFloat32() {
278
275
279
276
@ Test
280
277
public void bindFloat32Null () {
281
- assumeFalse ("Emulator does not support FLOAT32 yet" , isUsingEmulator ());
282
- assumeTrue ("FLOAT32 is currently only supported in cloud-devel" , isUsingCloudDevel ());
283
-
284
278
Struct row =
285
279
execute (Statement .newBuilder (selectValueQuery ).bind ("p1" ).to ((Float ) null ), Type .float32 ());
286
280
assertThat (row .isNull (0 )).isTrue ();
@@ -342,7 +336,6 @@ public void bindStringNull() {
342
336
@ Test
343
337
public void bindJson () {
344
338
assumeFalse ("JSON are not supported on POSTGRESQL" , dialect .dialect == Dialect .POSTGRESQL );
345
- assumeFalse ("Emulator does not yet support JSON" , EmulatorSpannerHelper .isUsingEmulator ());
346
339
Struct row =
347
340
execute (
348
341
Statement .newBuilder (selectValueQuery )
@@ -356,7 +349,6 @@ public void bindJson() {
356
349
@ Test
357
350
public void bindJsonEmpty () {
358
351
assumeFalse ("JSON are not supported on POSTGRESQL" , dialect .dialect == Dialect .POSTGRESQL );
359
- assumeFalse ("Emulator does not yet support JSON" , EmulatorSpannerHelper .isUsingEmulator ());
360
352
Struct row =
361
353
execute (
362
354
Statement .newBuilder (selectValueQuery ).bind ("p1" ).to (Value .json ("{}" )), Type .json ());
@@ -367,7 +359,6 @@ public void bindJsonEmpty() {
367
359
@ Test
368
360
public void bindJsonNull () {
369
361
assumeFalse ("JSON is not supported on POSTGRESQL" , dialect .dialect == Dialect .POSTGRESQL );
370
- assumeFalse ("Emulator does not yet support JSON" , EmulatorSpannerHelper .isUsingEmulator ());
371
362
Struct row =
372
363
execute (
373
364
Statement .newBuilder (selectValueQuery ).bind ("p1" ).to (Value .json (null )), Type .json ());
@@ -426,8 +417,6 @@ public void bindDateNull() {
426
417
427
418
@ Test
428
419
public void bindInterval () {
429
- assumeFalse (
430
- "INTERVAL is not yet supported on Emulator" , EmulatorSpannerHelper .isUsingEmulator ());
431
420
Interval d = Interval .parseFromString ("P1Y2M3DT4H5M6.789123S" );
432
421
Struct row = execute (Statement .newBuilder (selectValueQuery ).bind ("p1" ).to (d ), Type .interval ());
433
422
assertThat (row .isNull (0 )).isFalse ();
@@ -436,8 +425,6 @@ public void bindInterval() {
436
425
437
426
@ Test
438
427
public void bindIntervalNull () {
439
- assumeFalse (
440
- "INTERVAL is not yet supported on Emulator" , EmulatorSpannerHelper .isUsingEmulator ());
441
428
Struct row =
442
429
execute (
443
430
Statement .newBuilder (selectValueQuery ).bind ("p1" ).to ((Interval ) null ), Type .interval ());
@@ -446,7 +433,6 @@ public void bindIntervalNull() {
446
433
447
434
@ Test
448
435
public void bindNumeric () {
449
- assumeFalse ("Emulator does not yet support NUMERIC" , EmulatorSpannerHelper .isUsingEmulator ());
450
436
BigDecimal b = new BigDecimal ("1.1" );
451
437
Statement .Builder statement = Statement .newBuilder (selectValueQuery );
452
438
Type expectedType = Type .numeric ();
@@ -471,7 +457,6 @@ public void bindNumeric() {
471
457
472
458
@ Test
473
459
public void bindNumericNull () {
474
- assumeFalse ("Emulator does not yet support NUMERIC" , EmulatorSpannerHelper .isUsingEmulator ());
475
460
Statement .Builder statement = Statement .newBuilder (selectValueQuery );
476
461
Type expectedType = Type .numeric ();
477
462
if (dialect .dialect == Dialect .POSTGRESQL ) {
@@ -486,7 +471,6 @@ public void bindNumericNull() {
486
471
487
472
@ Test
488
473
public void bindNumeric_doesNotPreservePrecision () {
489
- assumeFalse ("Emulator does not yet support NUMERIC" , EmulatorSpannerHelper .isUsingEmulator ());
490
474
BigDecimal b = new BigDecimal ("1.10" );
491
475
Statement .Builder statement = Statement .newBuilder (selectValueQuery );
492
476
Type expectedType = Type .numeric ();
@@ -574,9 +558,6 @@ public void bindInt64ArrayNull() {
574
558
575
559
@ Test
576
560
public void bindFloat32Array () {
577
- assumeFalse ("Emulator does not support FLOAT32 yet" , isUsingEmulator ());
578
- assumeTrue ("FLOAT32 is currently only supported in cloud-devel" , isUsingCloudDevel ());
579
-
580
561
Struct row =
581
562
execute (
582
563
Statement .newBuilder (selectValueQuery )
@@ -599,9 +580,6 @@ public void bindFloat32Array() {
599
580
600
581
@ Test
601
582
public void bindFloat32ArrayEmpty () {
602
- assumeFalse ("Emulator does not support FLOAT32 yet" , isUsingEmulator ());
603
- assumeTrue ("FLOAT32 is currently only supported in cloud-devel" , isUsingCloudDevel ());
604
-
605
583
Struct row =
606
584
execute (
607
585
Statement .newBuilder (selectValueQuery )
@@ -614,9 +592,6 @@ public void bindFloat32ArrayEmpty() {
614
592
615
593
@ Test
616
594
public void bindFloat32ArrayNull () {
617
- assumeFalse ("Emulator does not support FLOAT32 yet" , isUsingEmulator ());
618
- assumeTrue ("FLOAT32 is currently only supported in cloud-devel" , isUsingCloudDevel ());
619
-
620
595
Struct row =
621
596
execute (
622
597
Statement .newBuilder (selectValueQuery ).bind ("p1" ).toFloat32Array ((float []) null ),
@@ -702,7 +677,6 @@ public void bindStringArrayNull() {
702
677
public void bindJsonArray () {
703
678
assumeFalse (
704
679
"array JSON binding is not supported on POSTGRESQL" , dialect .dialect == Dialect .POSTGRESQL );
705
- assumeFalse ("Emulator does not yet support JSON" , EmulatorSpannerHelper .isUsingEmulator ());
706
680
Struct row =
707
681
execute (
708
682
Statement .newBuilder (selectValueQuery )
@@ -718,7 +692,6 @@ public void bindJsonArray() {
718
692
@ Test
719
693
public void bindJsonArrayEmpty () {
720
694
assumeFalse ("JSON is not supported on POSTGRESQL" , dialect .dialect == Dialect .POSTGRESQL );
721
- assumeFalse ("Emulator does not yet support JSON" , EmulatorSpannerHelper .isUsingEmulator ());
722
695
Struct row =
723
696
execute (
724
697
Statement .newBuilder (selectValueQuery ).bind ("p1" ).toJsonArray (Collections .emptyList ()),
@@ -730,7 +703,6 @@ public void bindJsonArrayEmpty() {
730
703
@ Test
731
704
public void bindJsonArrayNull () {
732
705
assumeFalse ("JSON is not supported on POSTGRESQL" , dialect .dialect == Dialect .POSTGRESQL );
733
- assumeFalse ("Emulator does not yet support JSON" , EmulatorSpannerHelper .isUsingEmulator ());
734
706
Struct row =
735
707
execute (
736
708
Statement .newBuilder (selectValueQuery ).bind ("p1" ).toJsonArray (null ),
@@ -840,8 +812,6 @@ public void bindDateArrayNull() {
840
812
841
813
@ Test
842
814
public void bindIntervalArray () {
843
- assumeFalse (
844
- "INTERVAL is not yet supported on Emulator" , EmulatorSpannerHelper .isUsingEmulator ());
845
815
Interval d1 = Interval .parseFromString ("P-1Y-2M-3DT4H5M6.789123S" );
846
816
Interval d2 = Interval .parseFromString ("P1Y2M3DT-4H-5M-6.789123S" );
847
817
Struct row =
@@ -854,8 +824,6 @@ public void bindIntervalArray() {
854
824
855
825
@ Test
856
826
public void bindIntervalArrayEmpty () {
857
- assumeFalse (
858
- "INTERVAL is not yet supported on Emulator" , EmulatorSpannerHelper .isUsingEmulator ());
859
827
Struct row =
860
828
execute (
861
829
Statement .newBuilder (selectValueQuery )
@@ -868,8 +836,6 @@ public void bindIntervalArrayEmpty() {
868
836
869
837
@ Test
870
838
public void bindIntervalArrayNull () {
871
- assumeFalse (
872
- "INTERVAL is not yet supported on Emulator" , EmulatorSpannerHelper .isUsingEmulator ());
873
839
Struct row =
874
840
execute (
875
841
Statement .newBuilder (selectValueQuery ).bind ("p1" ).toIntervalArray (null ),
@@ -880,7 +846,6 @@ public void bindIntervalArrayNull() {
880
846
@ Test
881
847
public void bindNumericArrayGoogleStandardSQL () {
882
848
assumeTrue (dialect .dialect == Dialect .GOOGLE_STANDARD_SQL );
883
- assumeFalse ("Emulator does not yet support NUMERIC" , EmulatorSpannerHelper .isUsingEmulator ());
884
849
BigDecimal b1 = new BigDecimal ("3.14" );
885
850
BigDecimal b2 = new BigDecimal ("6.626" );
886
851
@@ -895,7 +860,6 @@ public void bindNumericArrayGoogleStandardSQL() {
895
860
@ Test
896
861
public void bindNumericArrayPostgreSQL () {
897
862
assumeTrue (dialect .dialect == Dialect .POSTGRESQL );
898
- assumeFalse ("Emulator does not yet support NUMERIC" , EmulatorSpannerHelper .isUsingEmulator ());
899
863
Struct row =
900
864
execute (
901
865
Statement .newBuilder (selectValueQuery )
@@ -909,7 +873,6 @@ public void bindNumericArrayPostgreSQL() {
909
873
@ Test
910
874
public void bindNumericArrayEmptyGoogleStandardSQL () {
911
875
assumeTrue (dialect .dialect == Dialect .GOOGLE_STANDARD_SQL );
912
- assumeFalse ("Emulator does not yet support NUMERIC" , EmulatorSpannerHelper .isUsingEmulator ());
913
876
Struct row =
914
877
execute (
915
878
Statement .newBuilder (selectValueQuery )
@@ -923,7 +886,6 @@ public void bindNumericArrayEmptyGoogleStandardSQL() {
923
886
@ Test
924
887
public void bindNumericArrayEmptyPostgreSQL () {
925
888
assumeTrue (dialect .dialect == Dialect .POSTGRESQL );
926
- assumeFalse ("Emulator does not yet support NUMERIC" , EmulatorSpannerHelper .isUsingEmulator ());
927
889
Struct row =
928
890
execute (
929
891
Statement .newBuilder (selectValueQuery )
0 commit comments