- Sort Score
- Result 10 results
- Languages All
Results 161 - 170 of 249 for reflectLen (0.05 sec)
-
src/test/java/jcifs/internal/smb2/multichannel/ChannelManagerTest.java
ChannelInfo healthyChannel = new ChannelInfo("test-channel", mockTransport, localInterface, remoteInterface); healthyChannel.setState(ChannelState.ESTABLISHED); // Use reflection or package-private method to add channel for testing // For now, just test the empty case assertEquals(0, channelManager.getHealthyChannels().size()); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 7.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/net/NetShareEnumResponseTest.java
System.arraycopy(stringBytes, 0, buffer, 10, stringBytes.length); buffer[10 + stringBytes.length] = 0; // null terminator // Use reflection to call protected readString method Method readStringMethod = getReadStringMethod(); String result = (String) readStringMethod.invoke(response, buffer, 10, 128, false);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.2K 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) -
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) -
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) -
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) -
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) -
cmd/postpolicyform.go
reader, err := sanitizePolicy(r) if err != nil { return PostPolicyForm{}, err } d := json.NewDecoder(reader) // Convert po into interfaces and // perform strict type conversion using reflection. var rawPolicy struct { Expiration string `json:"expiration"` Conditions []any `json:"conditions"` } d.DisallowUnknownFields() if err := d.Decode(&rawPolicy); err != nil {
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 12.1K bytes - Viewed (0)