- Sort Score
- Result 10 results
- Languages All
Results 21 - 25 of 25 for LongMath (1.21 sec)
-
src/test/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformationTest.java
// Create a very long filename StringBuilder longPath = new StringBuilder(); for (int i = 0; i < 100; i++) { longPath.append("verylongpath/"); } longPath.append("file.txt"); trans2QueryPathInfo = new Trans2QueryPathInformation(config, longPath.toString(), TEST_INFO_LEVEL); byte[] buffer = new byte[8192]; // Large buffer for long pathRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/dfs/DfsReferralDataImplTest.java
StringBuilder longPath = new StringBuilder("\\server\\share"); for (int i = 0; i < 100; i++) { longPath.append("\\subfolder").append(i); } when(mockReferral.getTtl()).thenReturn(300); when(mockReferral.getRFlags()).thenReturn(0); when(mockReferral.getNode()).thenReturn(longPath.toString());
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 30.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/Smb2CreateRequestTest.java
} @Test @DisplayName("Test writeBytesWireFormat with long path") void testWriteBytesWireFormatLongPath() { String longPath = "very\\long\\path\\to\\some\\deeply\\nested\\file\\in\\directory\\structure.txt"; request = new Smb2CreateRequest(mockConfig, longPath); byte[] buffer = new byte[2048]; int bytesWritten = request.writeBytesWireFormat(buffer, 0);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 18.6K bytes - Viewed (0) -
src/test/java/jcifs/util/ServerResponseValidatorTest.java
validator.validatePath(""); // Empty should be allowed } @Test public void testPathTooLong() throws Exception { String longPath = "\\share" + "\\folder".repeat(5000); assertThrows(SmbException.class, () -> { validator.validatePath(longPath); }); } @Test public void testPathWithTraversal() throws Exception { assertThrows(SmbException.class, () -> {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 14.2K bytes - Viewed (0) -
src/test/java/jcifs/util/PathValidatorTest.java
} @Test public void testPathTooLong() throws Exception { StringBuilder longPath = new StringBuilder("\\share"); for (int i = 0; i < 100; i++) { longPath.append("\\verylongfoldername"); } assertThrows(SmbException.class, () -> { validator.validatePath(longPath.toString()); }); } @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 14.6K bytes - Viewed (0)