thswlsqls commented on code in PR #16886:
URL: https://github.com/apache/iceberg/pull/16886#discussion_r3449150387
##########
dell/src/test/java/org/apache/iceberg/dell/ecs/TestEcsURI.java:
##########
@@ -59,4 +59,11 @@ public void testInvalidLocation() {
.isInstanceOf(ValidationException.class)
.hasMessage("Invalid ecs location: http://bucket/a");
}
+
+ @Test
+ public void testNullLocation() {
+ assertThatThrownBy(() -> new EcsURI((String) null))
Review Comment:
Removed.
There's only one single-argument constructor, so new EcsURI(null) is
unambiguous and the cast isn't needed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]