Skip to content

Commit 7c364f6

Browse files
committed
Fix to use getter to get object names
1 parent 14db577 commit 7c364f6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

integration-test/src/main/java/com/scalar/db/api/DistributedStorageAdminIntegrationTestBase.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,8 @@ public void createIndex_ForNonExistingColumn_ShouldThrowIllegalArgumentException
737737
// Act Assert
738738
assertThatThrownBy(
739739
() ->
740-
admin.createIndex(namespace1, TABLE1, "non-existing_column", getCreationOptions()))
740+
admin.createIndex(
741+
namespace1, getTable1(), "non-existing_column", getCreationOptions()))
741742
.isInstanceOf(IllegalArgumentException.class);
742743
}
743744

@@ -906,7 +907,7 @@ public void dropIndex_ForNonExistingTable_ShouldThrowIllegalArgumentException()
906907
// Arrange
907908

908909
// Act Assert
909-
assertThatThrownBy(() -> admin.dropIndex(namespace1, "non-existing-table", COL_NAME2))
910+
assertThatThrownBy(() -> admin.dropIndex(namespace1, "non-existing-table", getColumnName2()))
910911
.isInstanceOf(IllegalArgumentException.class);
911912
}
912913

@@ -915,7 +916,7 @@ public void dropIndex_ForNonExistingIndex_ShouldThrowIllegalArgumentException()
915916
// Arrange
916917

917918
// Act Assert
918-
assertThatThrownBy(() -> admin.dropIndex(namespace1, TABLE1, COL_NAME2))
919+
assertThatThrownBy(() -> admin.dropIndex(namespace1, getTable1(), getColumnName2()))
919920
.isInstanceOf(IllegalArgumentException.class);
920921
}
921922

0 commit comments

Comments
 (0)