- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for validateShareName (0.06 seconds)
-
src/main/java/jcifs/util/InputValidator.java
} /** * Validates share name * * @param share the share name to validate * @throws IllegalArgumentException if share name is invalid */ public static void validateShareName(String share) { if (share == null || share.isEmpty()) { throw new IllegalArgumentException("Share name cannot be null or empty"); } if (share.length() > MAX_SHARE_NAME_LENGTH) {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 13.5K bytes - Click Count (0) -
src/test/java/jcifs/util/InputValidatorTest.java
@ValueSource(strings = { "share", "share$", "SHARE", "share123", "share-name", "share_name", "share.name" }) void testValidShareNames(String share) { assertDoesNotThrow(() -> InputValidator.validateShareName(share)); } @Test @DisplayName("Test port validation") void testPortValidation() { assertDoesNotThrow(() -> InputValidator.validatePort(445));Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 11.9K bytes - Click Count (0)