- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 108 for reflection (3.46 sec)
-
src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectRequestTest.java
Configuration mockConfig = mock(Configuration.class); // When Smb2TreeDisconnectRequest req = new Smb2TreeDisconnectRequest(mockConfig); // Then - verify command is set correctly using reflection Field commandField = ServerMessageBlock2.class.getDeclaredField("command"); commandField.setAccessible(true); int command = (int) commandField.get(req);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.1K bytes - Viewed (0) -
src/test/java/jcifs/ntlmssp/Type2MessageTest.java
} } } catch (Exception e) { fail("Failed to invoke makeTargetInfo via reflection: " + e.getMessage()); } } @Test @DisplayName("makeTargetInfo should handle missing domain") void testMakeTargetInfo_NoDomain() throws IOException {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 38.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/net/NetServerEnum2ResponseTest.java
setStatus(response, 0); setConverter(response, 100); setNumEntries(response, 2); setTotalAvailableEntries(response, 5); // Set lastName through reflection Field lastNameField = response.getClass().getDeclaredField("lastName"); lastNameField.setAccessible(true); lastNameField.set(response, "LASTSERVER");
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 25.4K bytes - Viewed (0) -
src/test/java/org/codelibs/curl/CurlTest.java
} @Test public void test_ProtectedConstructor() throws Exception { // ## Test that protected constructor can be accessed via reflection ## // ## Act ## final Constructor<Curl> constructor = Curl.class.getDeclaredConstructor(); constructor.setAccessible(true); final Curl instance = constructor.newInstance();Registered: Sat Dec 20 09:13:53 UTC 2025 - Last Modified: Thu Nov 20 13:34:13 UTC 2025 - 16.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyResponseTest.java
// Then assertNotNull(responseWithNull); assertNotNull(responseWithNull.getNotifyInformation()); } /** * Helper method to set header start using reflection */ private void setHeaderStart(Smb2ChangeNotifyResponse response, int headerStart) throws Exception { Method method = ServerMessageBlock2.class.getDeclaredMethod("getHeaderStart");Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 18.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectRequestTest.java
// Given & When String path = "\\\\testserver\\testshare"; Smb2TreeConnectRequest req = new Smb2TreeConnectRequest(mockConfig, path); // Then - verify command is set correctly using reflection Field commandField = ServerMessageBlock2.class.getDeclaredField("command"); commandField.setAccessible(true); int command = (int) commandField.get(req);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.6K bytes - Viewed (0) -
src/test/java/jcifs/http/NtlmServletTest.java
* @throws CIFSException */ private void setupMocksForAuth() throws Exception { // This is a simplified way to get a transport context into the servlet. // A more robust solution might involve reflection or modifying the servlet for testability. try { java.lang.reflect.Field transportContextField = NtlmServlet.class.getDeclaredField("transportContext"); transportContextField.setAccessible(true);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 11.5K bytes - Viewed (0) -
src/test/java/jcifs/smb1/https/HandlerTest.java
assertNotEquals(httpsPort, httpPort); } } @Nested @DisplayName("Edge Cases") class EdgeCaseTests { @Test @DisplayName("Should handle reflection access to protected method") void testProtectedMethodAccess() throws Exception { // Given Handler testHandler = new Handler(); // When
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.2K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/net/protocol/storage/HandlerTest.java
assertTrue(conn instanceof Handler.StorageURLConnection); Handler.StorageURLConnection storageConn = (Handler.StorageURLConnection) conn; // Use reflection to access private fields for testing assertEquals("mybucket", getField(storageConn, "bucketName")); assertEquals("path/to/object.txt", getField(storageConn, "objectName")); } /**Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Thu Dec 11 08:38:29 UTC 2025 - 14.4K bytes - Viewed (0) -
src/test/java/jcifs/MsrpcDfsRootEnumTest.java
assertInstanceOf(SmbShareInfo.class, entries[1]); assertEquals("normal_share", entries[1].getName()); assertEquals(8, entries[1].getType()); } // Helper method to set DfsEnumArray using reflection private void setDfsEnumArray(MsrpcDfsRootEnum target, netdfs.DfsEnumArray200 array) throws Exception { Field eField = netdfs.DfsEnumStruct.class.getDeclaredField("e"); eField.setAccessible(true);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.9K bytes - Viewed (0)