- Sort Score
- Result 10 results
- Languages All
Results 311 - 320 of 444 for 1020 (0.01 sec)
-
fess-crawler/src/test/java/org/codelibs/fess/crawler/CrawlerStatusTest.java
assertFalse(result); } /** * Test thread safety of enum */ public void test_threadSafety() throws Exception { final int threadCount = 100; final int iterationsPerThread = 1000; final Set<Exception> exceptions = new HashSet<>(); Thread[] threads = new Thread[threadCount]; for (int i = 0; i < threadCount; i++) {
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Wed Sep 03 14:42:53 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/CommonServerMessageBlockTest.java
// Given byte[] buffer = new byte[512]; int encodeIndex = 0; int decodeIndex = 0; int encodeLength = 100; int decodeLength = 100; when(messageBlock.encode(buffer, encodeIndex)).thenReturn(encodeLength); when(messageBlock.decode(buffer, decodeIndex)).thenReturn(decodeLength); // WhenRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/CommonServerMessageBlockRequestTest.java
verify(request, times(1)).split(); } @Test @DisplayName("Test size returns positive message size") void testSizeReturnsPositiveValue() { // Given int expectedSize = 1024; when(request.size()).thenReturn(expectedSize); // When int result = request.size(); // Then assertEquals(expectedSize, result);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.1K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/MsrpcLookupSidsTest.java
assertSame(specificHandle, handleField.get(lookupSids)); } @Test void constructor_shouldHandleLargeSidArray() { // Arrange int largeSize = 1000; testSids = new jcifs.SID[largeSize]; for (int i = 0; i < largeSize; i++) { testSids[i] = mock(jcifs.SID.class); when(testSids[i].unwrap(sid_t.class)).thenReturn(mockSidT);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.6K bytes - Viewed (0) -
src/test/java/jcifs/EmptyIteratorTest.java
long endTime = System.currentTimeMillis(); long duration = endTime - startTime; // Then - should complete quickly (this is more of a performance indicator) assertTrue(duration < 1000, "Creating and using 10000 EmptyIterators should be fast (took " + duration + "ms)"); } @Test @DisplayName("EmptyIterator should work correctly in nested iteration") void testNestedIteration() {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransPeekNamedPipeTest.java
// Arrange transPeekNamedPipe = new TransPeekNamedPipe(mockConfig, TEST_PIPE_NAME, TEST_FID); byte[] smallBuffer = new byte[1]; byte[] largeBuffer = new byte[1000]; // Act & Assert assertEquals(0, transPeekNamedPipe.readSetupWireFormat(smallBuffer, 0, 1)); assertEquals(0, transPeekNamedPipe.readSetupWireFormat(largeBuffer, 500, 500));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/smb2/ioctl/SrvPipePeekResponseTest.java
// Prepare test data with large data section int dataSize = 1024; byte[] buffer = new byte[16 + dataSize]; int bufferIndex = 0; // Set up test values int namedPipeState = 0x03; int readDataAvailable = dataSize; int numberOfMessages = 10; int messageLength = 100; // Create test data pattern byte[] testData = new byte[dataSize];Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/ValidateNegotiateInfoResponseTest.java
// Test with different offset response = new ValidateNegotiateInfoResponse(); buffer = new byte[50]; bytesDecoded = response.decode(buffer, 10, 24); assertEquals(24, bytesDecoded, "Should return 24 bytes consumed regardless of offset"); } @Test @DisplayName("Test server GUID reference")Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.8K bytes - Viewed (0) -
src/test/java/jcifs/pac/PacLogonInfoTest.java
ByteArrayOutputStream baos = new ByteArrayOutputStream(); DataOutputStream dos = new DataOutputStream(baos); // Write a RID (4 bytes) for readId() method writeLittleEndianInt(dos, 1000); ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); PacDataInputStream pacStream = new PacDataInputStream(bais); SID id = pacStream.readId();
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.3K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbFileInputStream.java
final SmbComReadAndX request = new SmbComReadAndX(file.fid, fp, r, null); if (file.type == SmbFile.TYPE_NAMED_PIPE) { request.minCount = request.maxCount = request.remaining = 1024; } file.send(request, response); } catch (final SmbException se) { if (file.type == SmbFile.TYPE_NAMED_PIPE && se.getNtStatus() == NtStatus.NT_STATUS_PIPE_BROKEN) {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 9.4K bytes - Viewed (0)