Skip to content

Commit

Permalink
[AVRO-2943] Improve GenericData String/Utf8 MAP unit test names
Browse files Browse the repository at this point in the history
Improves clarify of what the tests are actually verifying.

Follow-up to:
  apache#974

https://issues.apache.org/jira/browse/AVRO-2943
  • Loading branch information
frankgrimes97 committed Mar 9, 2023
1 parent 819627a commit a397979
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ void testEquals() {
}

@Test
public void testMapKeyEquals() {
public void testMapKeyEqualsStringAndUtf8Compatibility() {
Schema mapSchema = new Schema.Parser().parse("{\"type\": \"map\", \"values\": \"string\"}");
Field myMapField = new Field("my_map", Schema.createMap(mapSchema), null, null);
Schema schema = Schema.createRecord("my_record", "doc", "mytest", false);
Expand All @@ -178,7 +178,7 @@ public void testMapKeyEquals() {
}

@Test
public void testMapValuesEquals() {
public void testMapValuesEqualsStringAndUtf8Compatibility() {
Schema mapSchema = new Schema.Parser().parse("{\"type\": \"map\", \"values\": \"string\"}");
Field myMapField = new Field("my_map", Schema.createMap(mapSchema), null, null);
Schema schema = Schema.createRecord("my_record", "doc", "mytest", false);
Expand Down

0 comments on commit a397979

Please sign in to comment.