- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 65 for verb (0.03 sec)
-
src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationTest.java
import org.mockito.junit.jupiter.MockitoSettings; import org.mockito.quality.Strictness; import jcifs.Configuration; /** * Unit tests for {@link SmbComQueryInformation}. The class is very small and * mainly focuses on serialising a command header that contains a file name. * <p> * Because most of the logic lives in {@link jcifs.internal.smb1.ServerMessageBlock}Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.9K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/ServerMessageBlockTest.java
assertEquals("short", result); } @Test void testReadStringWithMaxLengthExceeded() { smb.useUnicode = false; byte[] buffer = "a very long string that exceeds max length".getBytes(); assertThrows(RuntimeException.class, () -> { smb.readString(buffer, 0, 10, false); }); } @Test void testEncodeDecode() {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.9K bytes - Viewed (0) -
src/test/java/org/codelibs/curl/io/ContentOutputStreamTest.java
File file = cos.getFile(); assertTrue(file.exists()); cos.close(); } @Test public void testLargeThreshold() throws IOException { // Test with very large threshold ContentOutputStream cos = new ContentOutputStream(1024 * 1024, Curl.tmpDir); cos.write(new byte[1000]); assertTrue(cos.isInMemory()); cos.close(); } @Test
Registered: Sat Dec 20 09:13:53 UTC 2025 - Last Modified: Wed Nov 12 14:01:04 UTC 2025 - 9.9K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/Smb3KeyDerivation.java
final int r = 32; final byte[] suffix = new byte[label.length + context.length + 5]; // per bouncycastle // <li>1: K(i) := PRF( KI, [i]_2 || Label || 0x00 || Context || [L]_2 ) with the counter at the very beginning // of the fixedInputData (The default implementation has this format)</li> // with the parameters // <li>1. KDFCounterParameters(ki, null, "Label || 0x00 || Context || [L]_2]", 8);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 6.5K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/exception/CrawlerSystemExceptionTest.java
assertNull(exception.getCause()); } /** * Test constructor with very long message */ public void test_constructor_withVeryLongMessage() { StringBuilder longMessage = new StringBuilder(); for (int i = 0; i < 10000; i++) { longMessage.append("Very long error message "); } String message = longMessage.toString();
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Wed Sep 03 14:42:53 UTC 2025 - 20K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformationTest.java
int actualInfoLevel = SMBUtil.readInt2(buffer, 0); assertEquals(0x0101, actualInfoLevel); } @Test void testWriteParametersWithLongFilename() { // Create a very long filename StringBuilder longPath = new StringBuilder(); for (int i = 0; i < 100; i++) { longPath.append("verylongpath/"); } longPath.append("file.txt");
Registered: 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/smb1/trans/nt/FileNotifyInformationImplTest.java
}); } @Test @DisplayName("Test decode with maximum file name length") void testDecodeMaxFileNameLength() throws SMBProtocolDecodingException { // Create a very long filename (but within reasonable bounds) StringBuilder sb = new StringBuilder(); for (int i = 0; i < 255; i++) { sb.append('A'); } String longFileName = sb.toString();Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/CriticalPerformanceTest.java
long end = System.nanoTime(); double totalTimeMs = (end - start) / 1_000_000.0; System.out.printf("Overall Performance Test: completed in %.2f ms%n", totalTimeMs); // Should complete very quickly with all optimizations assertTrue(totalTimeMs < 100, "All operations should complete quickly with performance fixes"); pool.close(); }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 15.3K bytes - Viewed (0) -
src/main/java/jcifs/audit/SecurityAuditLogger.java
sb.setLength(0); // Reset length } return sb; } private void returnStringBuilder(StringBuilder sb) { if (sb != null && sb.capacity() < 2048) { // Avoid keeping very large builders stringBuilderPool.offer(sb); } } private Map<String, Object> getContextMap() { HashMap<String, Object> map = mapPool.poll(); if (map == null) {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 26.6K bytes - Viewed (0) -
src/test/java/jcifs/ntlmssp/Type3MessageTest.java
@DisplayName("Should handle long passwords") void testLongPasswords() throws Exception { // Given Type2Message type2 = createMockType2Message(); String longPassword = createTestString(256); // Very long password // When/Then assertDoesNotThrow(() -> { Type3Message type3 = new Type3Message(createMockContext(), type2, null, longPassword, "DOMAIN", "user", "WORKSTATION", 0);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.3K bytes - Viewed (0)