-
Notifications
You must be signed in to change notification settings - Fork 3k
API: Use Immutables for TableIdentifier/Namespace #3688
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -56,11 +56,11 @@ public void testToLowerCase() { | |
| public void testInvalidTableName() { | ||
| Assertions.assertThatThrownBy(() -> TableIdentifier.of(Namespace.empty(), "")) | ||
| .isInstanceOf(IllegalArgumentException.class) | ||
| .hasMessage("Invalid table name: null or empty"); | ||
| .hasMessage("Invalid table name: empty"); | ||
|
|
||
| Assertions.assertThatThrownBy(() -> TableIdentifier.of(Namespace.empty(), null)) | ||
| .isInstanceOf(IllegalArgumentException.class) | ||
| .hasMessage("Invalid table name: null or empty"); | ||
| .isInstanceOf(NullPointerException.class) | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is because the Immutables lib does an
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. alternatively, we could add |
||
| .hasMessage("name"); | ||
| } | ||
|
|
||
| @Test | ||
|
|
@@ -74,7 +74,7 @@ public void testNulls() { | |
| .hasMessage("Cannot parse table identifier: null"); | ||
|
|
||
| Assertions.assertThatThrownBy(() -> TableIdentifier.of(null, "name")) | ||
| .isInstanceOf(IllegalArgumentException.class) | ||
| .hasMessage("Invalid Namespace: null"); | ||
| .isInstanceOf(NullPointerException.class) | ||
| .hasMessage("namespace"); | ||
| } | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.