-
Notifications
You must be signed in to change notification settings - Fork 323
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
Signed-off-by: David Goss <david.goss@matillion.com>
- Loading branch information
1 parent
6f75fc6
commit 82c81da
Showing
3 changed files
with
28 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
24 changes: 24 additions & 0 deletions
24
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,24 @@ | ||
/* | ||
* Copyright 2018-2023 contributors to the Marquez project | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package marquez.client.models; | ||
|
||
import org.junit.jupiter.api.Test; | ||
|
||
import static org.junit.jupiter.api.Assertions.*; | ||
|
||
@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()); | ||
} | ||
} |