Skip to content

Commit

Permalink
apache#2449 update assertEquals to assertArrayEquals
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan02.yang committed Mar 14, 2024
1 parent 131f7de commit 10cc8f3
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ void testTransformRenameColumn() {
com.datastrato.gravitino.rel.TableChange.RenameColumn gravitinoRenameColumn =
(com.datastrato.gravitino.rel.TableChange.RenameColumn) gravitinoChange;

Assertions.assertEquals(oldFiledsName, gravitinoRenameColumn.getFieldName());
Assertions.assertArrayEquals(oldFiledsName, gravitinoRenameColumn.getFieldName());
Assertions.assertEquals(newFiledName, gravitinoRenameColumn.getNewName());
}

Expand All @@ -73,7 +73,7 @@ void testTransformUpdateColumnComment() {
com.datastrato.gravitino.rel.TableChange.UpdateColumnComment gravitinoUpdateColumnComment =
(com.datastrato.gravitino.rel.TableChange.UpdateColumnComment) gravitinoChange;

Assertions.assertEquals(fieldNames, gravitinoUpdateColumnComment.getFieldName());
Assertions.assertArrayEquals(fieldNames, gravitinoUpdateColumnComment.getFieldName());
Assertions.assertEquals(newComment, gravitinoUpdateColumnComment.getNewComment());
}

Expand All @@ -98,7 +98,7 @@ void testTransformAddColumn() {
com.datastrato.gravitino.rel.TableChange.AddColumn gravitinoAddColumnFirst =
(com.datastrato.gravitino.rel.TableChange.AddColumn) gravitinoChangeFirst;

Assertions.assertEquals(sparkAddColumnFirst.fieldNames(), gravitinoAddColumnFirst.fieldName());
Assertions.assertArrayEquals(sparkAddColumnFirst.fieldNames(), gravitinoAddColumnFirst.fieldName());
Assertions.assertTrue(
"string".equalsIgnoreCase(gravitinoAddColumnFirst.getDataType().simpleString()));
Assertions.assertTrue(
Expand All @@ -117,7 +117,7 @@ void testTransformAddColumn() {
com.datastrato.gravitino.rel.TableChange.AddColumn gravitinoAddColumnAfter =
(com.datastrato.gravitino.rel.TableChange.AddColumn) gravitinoChangeAfter;

Assertions.assertEquals(sparkAddColumnAfter.fieldNames(), gravitinoAddColumnAfter.fieldName());
Assertions.assertArrayEquals(sparkAddColumnAfter.fieldNames(), gravitinoAddColumnAfter.fieldName());
Assertions.assertTrue(
"string".equalsIgnoreCase(gravitinoAddColumnAfter.getDataType().simpleString()));
Assertions.assertTrue(
Expand All @@ -136,7 +136,7 @@ void testTransformAddColumn() {
com.datastrato.gravitino.rel.TableChange.AddColumn gravitinoAddColumnDefault =
(com.datastrato.gravitino.rel.TableChange.AddColumn) gravitinoChangeDefault;

Assertions.assertEquals(
Assertions.assertArrayEquals(
sparkAddColumnDefault.fieldNames(), gravitinoAddColumnDefault.fieldName());
Assertions.assertTrue(
"string".equalsIgnoreCase(gravitinoAddColumnDefault.getDataType().simpleString()));
Expand All @@ -157,7 +157,7 @@ void testTransformDeleteColumn() {
com.datastrato.gravitino.rel.TableChange.DeleteColumn gravitinoDeleteColumn =
(com.datastrato.gravitino.rel.TableChange.DeleteColumn) gravitinoChange;

Assertions.assertEquals(sparkDeleteColumn.fieldNames(), gravitinoDeleteColumn.fieldName());
Assertions.assertArrayEquals(sparkDeleteColumn.fieldNames(), gravitinoDeleteColumn.fieldName());
Assertions.assertEquals(sparkDeleteColumn.ifExists(), gravitinoDeleteColumn.getIfExists());
}

Expand All @@ -174,7 +174,7 @@ void testTransformUpdateColumnType() {
com.datastrato.gravitino.rel.TableChange.UpdateColumnType gravitinoUpdateColumnType =
(com.datastrato.gravitino.rel.TableChange.UpdateColumnType) gravitinoChange;

Assertions.assertEquals(
Assertions.assertArrayEquals(
sparkUpdateColumnType.fieldNames(), gravitinoUpdateColumnType.fieldName());
Assertions.assertTrue(
"string".equalsIgnoreCase(gravitinoUpdateColumnType.getNewDataType().simpleString()));
Expand Down

0 comments on commit 10cc8f3

Please sign in to comment.