-
Notifications
You must be signed in to change notification settings - Fork 333
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tolerate null transformation attrs in field model (#2600)
Signed-off-by: David Goss <david.goss@matillion.com>
- Loading branch information
1 parent
e48ac69
commit e85127c
Showing
3 changed files
with
29 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
clients/java/src/test/java/marquez/client/models/ColumnLineageInputFieldTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
* Copyright 2018-2023 contributors to the Marquez project | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package marquez.client.models; | ||
|
||
import static org.junit.jupiter.api.Assertions.assertEquals; | ||
import static org.junit.jupiter.api.Assertions.assertNull; | ||
|
||
import org.junit.jupiter.api.Test; | ||
|
||
@org.junit.jupiter.api.Tag("UnitTests") | ||
public class ColumnLineageInputFieldTest { | ||
@Test | ||
void testToleratesNullTransformationTypeAndDescription() { | ||
ColumnLineageInputField field = new ColumnLineageInputField("ns", "ds", "field", null, null); | ||
|
||
assertEquals("ns", field.getNamespace()); | ||
assertEquals("ds", field.getDataset()); | ||
assertEquals("field", field.getField()); | ||
assertNull(field.getTransformationDescription()); | ||
assertNull(field.getTransformationType()); | ||
} | ||
} |