Skip to content
This repository was archived by the owner on Apr 7, 2026. It is now read-only.

Commit 12bdfe2

Browse files
committed
test:Enable Integration Tests for UUID in Production and Emulator
1 parent cd11720 commit 12bdfe2

2 files changed

Lines changed: 0 additions & 29 deletions

File tree

google-cloud-spanner/src/test/java/com/google/cloud/spanner/it/ITQueryTest.java

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -428,11 +428,6 @@ public void bindDateNull() {
428428

429429
@Test
430430
public void bindUuid() {
431-
// TODO: Remove once it is enabled in emulator.
432-
assumeFalse("Emulator does not support UUID yet", isUsingEmulator());
433-
// TODO: Remove once it is enabled in production universe.
434-
assumeTrue("UUID is currently only supported in cloud-devel", isUsingCloudDevel());
435-
436431
UUID uuid = UUID.randomUUID();
437432
Struct row = execute(Statement.newBuilder(selectValueQuery).bind("p1").to(uuid), Type.uuid());
438433
assertThat(row.isNull(0)).isFalse();
@@ -441,11 +436,6 @@ public void bindUuid() {
441436

442437
@Test
443438
public void bindUuidNull() {
444-
// TODO: Remove once it is enabled in emulator.
445-
assumeFalse("Emulator does not support UUID yet", isUsingEmulator());
446-
// TODO: Remove once it is enabled in production universe.
447-
assumeTrue("UUID is currently only supported in cloud-devel", isUsingCloudDevel());
448-
449439
Struct row =
450440
execute(Statement.newBuilder(selectValueQuery).bind("p1").to((UUID) null), Type.uuid());
451441
assertThat(row.isNull(0)).isTrue();
@@ -848,11 +838,6 @@ public void bindDateArrayNull() {
848838

849839
@Test
850840
public void bindUuidArray() {
851-
// TODO: Remove once it is enabled in emulator.
852-
assumeFalse("Emulator does not support UUID yet", isUsingEmulator());
853-
// TODO: Remove once it is enabled in production universe.
854-
assumeTrue("UUID is currently only supported in cloud-devel", isUsingCloudDevel());
855-
856841
UUID u1 = UUID.randomUUID();
857842
UUID u2 = UUID.randomUUID();
858843

@@ -866,11 +851,6 @@ public void bindUuidArray() {
866851

867852
@Test
868853
public void bindUuidArrayEmpty() {
869-
// TODO: Remove once it is enabled in emulator.
870-
assumeFalse("Emulator does not support UUID yet", isUsingEmulator());
871-
// TODO: Remove once it is enabled in production universe.
872-
assumeTrue("UUID is currently only supported in cloud-devel", isUsingCloudDevel());
873-
874854
Struct row =
875855
execute(
876856
Statement.newBuilder(selectValueQuery).bind("p1").toUuidArray(Collections.emptyList()),
@@ -881,11 +861,6 @@ public void bindUuidArrayEmpty() {
881861

882862
@Test
883863
public void bindUuidArrayNull() {
884-
// TODO: Remove once it is enabled in emulator.
885-
assumeFalse("Emulator does not support UUID yet", isUsingEmulator());
886-
// TODO: Remove once it is enabled in production universe.
887-
assumeTrue("UUID is currently only supported in cloud-devel", isUsingCloudDevel());
888-
889864
Struct row =
890865
execute(
891866
Statement.newBuilder(selectValueQuery).bind("p1").toUuidArray(null),

google-cloud-spanner/src/test/java/com/google/cloud/spanner/it/ITUuidTest.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,9 @@ private static boolean isUsingCloudDevel() {
7171

7272
@Parameterized.Parameters(name = "Dialect = {0}")
7373
public static List<DialectTestParameter> data() {
74-
// TODO: Remove once it is enabled in production universe.
75-
if (isUsingCloudDevel()) {
7674
return Arrays.asList(
7775
new DialectTestParameter(Dialect.GOOGLE_STANDARD_SQL),
7876
new DialectTestParameter(Dialect.POSTGRESQL));
79-
}
80-
return Collections.emptyList();
8177
}
8278

8379
@Parameterized.Parameter() public DialectTestParameter dialect;

0 commit comments

Comments
 (0)