- Sort Score
- Result 10 results
- Languages All
Results 141 - 150 of 318 for reflection (0.07 sec)
-
src/test/java/jcifs/dcerpc/DcerpcBindTest.java
"Flags should be set for first and last fragment"); // Verify private fields using reflection Field bindingField = DcerpcBind.class.getDeclaredField("binding"); bindingField.setAccessible(true); assertSame(mockBinding, bindingField.get(bindWithParams), "Binding should be set");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 22.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransCallNamedPipeResponseTest.java
assertTrue(result.startsWith("TransCallNamedPipeResponse[")); assertTrue(result.endsWith("]")); } @Test void testGetResponseLength() throws Exception { // Use reflection to set dataCount Field dataCountField = SmbComTransactionResponse.class.getDeclaredField("dataCount"); dataCountField.setAccessible(true); dataCountField.setInt(response, 42);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.8K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionToArrayTester.java
* FeatureSpecificTestSuiteBuilder.suppressing()} until <a * href="https://bugs.openjdk.org/browse/JDK-6260652">JDK-6260652</a> is fixed. */ @J2ktIncompatible @GwtIncompatible // reflection public static Method getToArrayIsPlainObjectArrayMethod() { return getMethod(CollectionToArrayTester.class, "testToArray_isPlainObjectArray"); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 8.2K bytes - Viewed (0) -
guava/src/com/google/common/hash/LittleEndianByteArray.java
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Feb 12 03:49:18 UTC 2025 - 12.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeInputStreamTest.java
when(tree.isSMB2()).thenReturn(false); when(tree.getConfig()).thenReturn(config); when(config.getPid()).thenReturn(1234); // Stub send to populate the provided response instance via reflection Mockito.doAnswer(inv -> { Object resp = inv.getArgument(1); // Set private fields: status on SmbComTransactionResponse and available on TransPeekNamedPipeResponse
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.9K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/DfsTest.java
assertNull(testDfs.getTrustedDomains(auth)); } @Test void testGetTrustedDomains_Success() throws IOException, SmbAuthException { // This test is complex due to static method dependencies and reflection access // For now, we'll test the disabled path which is safer testDfs.setDisabled(true); assertNull(testDfs.getTrustedDomains(auth)); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 11.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/RequestWithFileIdTest.java
Smb2CloseRequest request = new Smb2CloseRequest(mockConfig, emptyFileId); // When request.setFileId(testFileId); // Then - verify through internal state (would need getter or reflection in real scenario) // Since we can't directly verify the internal state, we create a new request to test Smb2CloseRequest newRequest = new Smb2CloseRequest(mockConfig, testFileId);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComRenameTest.java
// When smbComRename = new SmbComRename(config, oldFileName, newFileName); // Then assertEquals(ServerMessageBlock.SMB_COM_RENAME, smbComRename.getCommand()); // Use reflection to verify private fields Field oldFileNameField = SmbComRename.class.getDeclaredField("oldFileName"); oldFileNameField.setAccessible(true); assertEquals(oldFileName, oldFileNameField.get(smbComRename));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.5K bytes - Viewed (0) -
src/test/java/jcifs/http/HandlerTest.java
// Restore system properties and clean up static state System.setProperties(originalSystemProperties); resetHandlerState(); } /** * Resets the static state of the Handler class using reflection. * This is crucial for ensuring that tests are isolated from each other. */ private void resetHandlerState() throws Exception { // Reset the static factory field
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.1K bytes - Viewed (0)