- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 1,248 for Invalid (0.04 sec)
-
src/test/java/jcifs/smb/SSPContextTest.java
throw new CIFSException("token is null but len > 0"); } if (off < 0 || len < 0 || off > token.length || off + len > token.length) { throw new CIFSException("invalid offset/length"); } return Arrays.copyOfRange(token, off, off + len); } @Override public String getNetbiosName() { return this.nbName; }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.2K bytes - Viewed (0) -
src/main/java/org/codelibs/core/misc/AssertionUtil.java
} } /** * Asserts that the argument is valid. * * @param argName * The name of the argument that must not be invalid. * @param expression * The precondition. * @param description * The description of why the argument is invalid. * @throws ClIllegalArgumentException * If {@code expression} is false.
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 12.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectResponseTest.java
} @DisplayName("Should throw exception for invalid structure size") @ParameterizedTest @ValueSource(ints = { 0, 1, 2, 3, 5, 10, 100, 65535 }) void testReadBytesWireFormatInvalidStructureSize(int structureSize) { // Given byte[] buffer = new byte[256]; int offset = 0; // Write invalid structure size SMBUtil.writeInt2(structureSize, buffer, offset);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/NetServerFileEntryAdapterIteratorTest.java
} @ParameterizedTest @NullAndEmptySource @DisplayName("Invalid names are skipped; next valid is returned") void skipsMalformedNames_thenReturnsValid(String badName) throws Exception { // Arrange: first entry is invalid (null or empty), second is valid setupParentForUrlCreation(); StubFileEntry bad = new StubFileEntry(badName, SmbConstants.TYPE_SERVER);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.9K bytes - Viewed (0) -
src/test/java/jcifs/util/InputValidatorTest.java
"user$name" // invalid character }) void testInvalidUsernames(String username) { assertThrows(IllegalArgumentException.class, () -> InputValidator.validateUsername(username)); } @Test @DisplayName("Test username length validation") void testUsernameLengthValidation() { String longUsername = "a".repeat(InputValidator.MAX_USERNAME_LENGTH + 1);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 11.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/BaseEncodingTest.java
assertFailsToDecode(base64(), "12345", "Invalid input length 5"); // These have a combination of invalid length, unrecognized characters and wrong padding. assertFailsToDecode(base64(), "AB=C", "Unrecognized character: ="); assertFailsToDecode(base64(), "A=BCD", "Invalid input length 5"); assertFailsToDecode(base64(), "?", "Invalid input length 1"); } public void testBase64CannotUpperCase() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 24.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbSessionInternalTest.java
assertEquals(share, shareCap.getValue()); assertEquals(svc, svcCap.getValue()); } // Edge/invalid inputs: null or empty share/service cause IllegalArgumentException (mocked) @ParameterizedTest @DisplayName("getSmbTree invalid inputs (null/empty) throw IllegalArgumentException") @CsvSource({ ",service", // null share " ,service", // empty share
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.8K bytes - Viewed (0) -
src/main/java/jcifs/SmbPipeHandle.java
/** * Tests whether this file descriptor is open and valid. * * @return whether the FD is open and valid */ boolean isOpen(); /** * Tests whether this file descriptor was previously open but has become invalid. * * @return whether the FD was previously open but became invalid */ boolean isStale(); /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.4K bytes - Viewed (0) -
src/test/java/jcifs/smb/PreauthIntegrityServiceTest.java
fail("Expected CIFSException"); } catch (CIFSException e) { // Expected } assertFalse(context.isValid()); // Further operations on invalid context should fail assertThrows(CIFSException.class, () -> { preauthService.updatePreauthHash(sessionId, "test".getBytes()); }); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 11.1K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbOperationException.java
// Protocol errors INVALID_PARAMETER("Invalid parameter", ErrorCategory.PROTOCOL, false), NOT_SUPPORTED("Operation not supported", ErrorCategory.PROTOCOL, false), INVALID_PROTOCOL("Invalid protocol", ErrorCategory.PROTOCOL, false), MESSAGE_TOO_LARGE("Message too large", ErrorCategory.PROTOCOL, false),
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 16.5K bytes - Viewed (0)