@Test void testStripProtocolNull() throws Exception { assertThatThrownBy(() -> stripProtocol(null)) .isInstanceOf(IllegalArgumentException.class) .hasMessageContaining(" must not be null"); }
static String stripProtocol(String location) { Assert.notNull(location, "Location must not be null"); if (!isSimpleStorageResource(location)) { throw new IllegalArgumentException( "The location :'" + location + "' is not a valid S3 location"); } return location.substring(S3_PROTOCOL_PREFIX.length()); }
SimpleStorageNameUtils { static String stripProtocol(String location) { Assert.notNull(location, "Location must not be null"); if (!isSimpleStorageResource(location)) { throw new IllegalArgumentException( "The location :'" + location + "' is not a valid S3 location"); } return location.substring(S3_PROTOCOL_PREFIX.length()); } }
SimpleStorageNameUtils { static String stripProtocol(String location) { Assert.notNull(location, "Location must not be null"); if (!isSimpleStorageResource(location)) { throw new IllegalArgumentException( "The location :'" + location + "' is not a valid S3 location"); } return location.substring(S3_PROTOCOL_PREFIX.length()); } private  SimpleStorageNameUtils(); }
SimpleStorageNameUtils { static String stripProtocol(String location) { Assert.notNull(location, "Location must not be null"); if (!isSimpleStorageResource(location)) { throw new IllegalArgumentException( "The location :'" + location + "' is not a valid S3 location"); } return location.substring(S3_PROTOCOL_PREFIX.length()); } private  SimpleStorageNameUtils();  }
SimpleStorageNameUtils { static String stripProtocol(String location) { Assert.notNull(location, "Location must not be null"); if (!isSimpleStorageResource(location)) { throw new IllegalArgumentException( "The location :'" + location + "' is not a valid S3 location"); } return location.substring(S3_PROTOCOL_PREFIX.length()); } private  SimpleStorageNameUtils();   }