- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 67 for reflection (0.42 sec)
-
fess-crawler/src/test/java/org/codelibs/fess/crawler/CrawlerThreadTest.java
final UrlQueue<?> urlQueue = new UrlQueueImpl<>(); urlQueue.setUrl("http://example.com/"); urlQueue.setDepth(1); when(urlFilter.match(anyString())).thenReturn(true); // Use reflection to access protected method final java.lang.reflect.Method method = CrawlerThread.class.getDeclaredMethod("isValid", UrlQueue.class); method.setAccessible(true);
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Mon Nov 24 03:59:47 UTC 2025 - 18.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComNegotiateResponseTest.java
response.getServerData().encryptionKeyLength = 8; // Domain name in OEM encoding (ASCII) with null terminator byte[] domainBytes = "DOMAIN\0".getBytes("US-ASCII"); // Use reflection to set protected byteCount field int byteCountValue = 8 + domainBytes.length; setByteCount(response, byteCountValue); byte[] buffer = new byte[byteCountValue]; int bufferIndex = 0;
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2ReadResponseTest.java
for (int i = 0; i < dataLength; i++) { testData[i] = (byte) (i & 0xFF); } System.arraycopy(testData, 0, buffer, dataOffsetFromHeader, dataLength); // Use reflection to set headerStart Field headerStartField = ServerMessageBlock2.class.getDeclaredField("headerStart"); headerStartField.setAccessible(true); headerStartField.set(response, headerStart);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 22.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationResponseTest.java
// Test getInfo with compatible class response = new Trans2QueryFSInformationResponse(config, FileSystemInformation.SMB_INFO_ALLOCATION); // Simulate setting info using reflection SmbInfoAllocation allocation = new SmbInfoAllocation(); setInfoField(response, allocation); SmbInfoAllocation result = response.getInfo(SmbInfoAllocation.class); assertNotNull(result);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.9K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/DcerpcPipeHandleTest.java
DcerpcPipeHandle handle = mock(DcerpcPipeHandle.class); // Inject the binding using reflection Field bindingField = DcerpcHandle.class.getDeclaredField("binding"); bindingField.setAccessible(true); bindingField.set(handle, mockDcerpcBinding); // Inject the CIFSContext using reflection Field tcField = DcerpcHandle.class.getDeclaredField("transportContext");
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 21K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/MsrpcLookupSidsTest.java
testSids = new jcifs.SID[] { mockSid1, mockSid2 }; // Act lookupSids = new MsrpcLookupSids(mockPolicyHandle, testSids); // Assert using reflection to verify superclass fields Field handleField = lsarpc.LsarLookupSids.class.getDeclaredField("handle"); handleField.setAccessible(true); assertSame(mockPolicyHandle, handleField.get(lookupSids));
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/org/codelibs/fess/suggest/SuggesterRefactoringTest.java
assertTrue("Index creation should be acknowledged", response.isAcknowledged()); final Suggester suggester = Suggester.builder().build(client, "test"); // Use reflection to access private method final Method method = Suggester.class.getDeclaredMethod("getIndicesForAlias", String.class); method.setAccessible(true);
Registered: Sat Dec 20 13:04:59 UTC 2025 - Last Modified: Mon Nov 24 03:40:05 UTC 2025 - 13.4K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTransportPoolImplTest.java
when(negotiationResponse.isSigningNegotiated()).thenReturn(false); when(negotiationResponse.canReuse(any(CIFSContext.class), anyBoolean())).thenReturn(true); // Use reflection to set the negotiated response Field negotiatedField = SmbTransportImpl.class.getDeclaredField("negotiated"); negotiatedField.setAccessible(true); negotiatedField.set(initial, negotiationResponse);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 19.2K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/net/protocol/gcs/HandlerTest.java
URLConnection conn = handler.openConnection(url); assertTrue(conn instanceof Handler.GcsURLConnection); Handler.GcsURLConnection gcsConn = (Handler.GcsURLConnection) conn; // Use reflection to access private fields for testing assertEquals("mybucket", getField(gcsConn, "bucketName")); assertEquals("path/to/object.txt", getField(gcsConn, "objectName")); } /**
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Thu Dec 11 08:38:29 UTC 2025 - 14.1K bytes - Viewed (0) -
README.md
- **I/O Operations** (`org.codelibs.core.io`) - File handling, resource management, stream utilities, and traversal utilities for efficient resource processing - **Reflection** (`org.codelibs.core.lang`) - Class loading, method/field access, type introspection utilities, and generics support
Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sun Aug 31 02:56:02 UTC 2025 - 12.7K bytes - Viewed (0)