From e63d984566e4af3f51a8627acfe777635d08b454 Mon Sep 17 00:00:00 2001 From: Uttam Kumar Date: Thu, 15 Feb 2024 14:33:32 -0800 Subject: [PATCH] fix Unit test --- .../com/linkedin/avroutil1/builder/SpecificRecordTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/avro-builder/tests/tests-allavro/src/test/java/com/linkedin/avroutil1/builder/SpecificRecordTest.java b/avro-builder/tests/tests-allavro/src/test/java/com/linkedin/avroutil1/builder/SpecificRecordTest.java index ebb0d3d9..99ad21b6 100644 --- a/avro-builder/tests/tests-allavro/src/test/java/com/linkedin/avroutil1/builder/SpecificRecordTest.java +++ b/avro-builder/tests/tests-allavro/src/test/java/com/linkedin/avroutil1/builder/SpecificRecordTest.java @@ -1087,13 +1087,14 @@ public void testSpecificRecordBuilder110(String stringField, String package$, Fl Assert.assertSame(builderTester.get(0), stringField); Assert.assertSame(builderTester.get(1), package$); Assert.assertSame(builderTester.get(6), min); - Assert.assertSame(builderTester.get(7), arrayOfRecord); Assert.assertSame(builderTester.get(10), simpleUnion); Assert.assertSame(builderTester.get(11), fixedType); Assert.assertEquals(builderTester.get(2), exception); Assert.assertEquals(builderTester.get(3), dbl); Assert.assertEquals(builderTester.get(4), isTrue); + // Equal, not same as the Record has string fields + Assert.assertEquals(builderTester.get(7), arrayOfRecord); // Use transformers to return a copy of data assertNotSameIfNotNull(builderTester.get(5), arrayOfStrings); Assert.assertEquals(builderTester.get(5), arrayOfStrings);