Skip to content

Commit

Permalink
remove duplicate code in RecordUtilsTest.java (#465)
Browse files Browse the repository at this point in the history
  • Loading branch information
hongliu2024 authored Nov 5, 2024
1 parent 9ea5af8 commit cf25612
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -542,17 +542,6 @@ public void testExtractFieldNameFromUnionField() {
assertEquals(destinationFieldName, "destinationBar");
}

private AspectBaz loadAspectBaz(String resourceName) throws IOException {
return RecordUtils.toRecordTemplate(AspectBaz.class,
IOUtils.toString(ClassLoader.getSystemResourceAsStream(resourceName), StandardCharsets.UTF_8));
}

private RelationshipV2Bar mockRelationshipV2Bar(BarUrn barUrn) {
RelationshipV2Bar.Destination destination = new RelationshipV2Bar.Destination();
destination.setDestinationBar(barUrn);
return new RelationshipV2Bar().setDestination(destination);
}

@Test
public void testExtractFieldValueFromUnionField() {
BarUrn barUrn = makeBarUrn(1);
Expand Down

0 comments on commit cf25612

Please sign in to comment.