- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 49 for getDeclaredMethod (0.06 sec)
-
src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeResponseTest.java
// Test getResponseLength method // First, set dataCount using reflection (since setDataCount is in parent class) Method setDataCountMethod = SmbComTransactionResponse.class.getDeclaredMethod("setDataCount", int.class); setDataCountMethod.setAccessible(true); setDataCountMethod.invoke(response, 256); int responseLength = response.getResponseLength();Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.5K bytes - Viewed (0) -
okhttp/src/androidMain/kotlin/okhttp3/internal/platform/android/AndroidSocketAdapter.kt
* on classpath. */ open class AndroidSocketAdapter( private val sslSocketClass: Class<in SSLSocket>, ) : SocketAdapter { private val setUseSessionTickets: Method = sslSocketClass.getDeclaredMethod("setUseSessionTickets", Boolean::class.javaPrimitiveType) private val setHostname = sslSocketClass.getMethod("setHostname", String::class.java)
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 4.6K bytes - Viewed (0) -
src/test/java/jcifs/smb1/https/HandlerTest.java
void testProtectedMethodAccess() throws Exception { // Given Handler testHandler = new Handler(); // When Method method = Handler.class.getDeclaredMethod("getDefaultPort"); // Then assertTrue(Modifier.isProtected(method.getModifiers())); method.setAccessible(true); assertEquals(443, method.invoke(testHandler));
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.2K bytes - Viewed (0) -
src/main/java/org/codelibs/core/lang/ClassUtil.java
* @see Class#getDeclaredMethod(String, Class...) */ public static Method getDeclaredMethod(final Class<?> clazz, final String name, final Class<?>... argTypes) throws NoSuchMethodRuntimeException { assertArgumentNotNull("clazz", clazz); assertArgumentNotEmpty("name", name); try { return clazz.getDeclaredMethod(name, argTypes);Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 25.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/WriteReplaceOverridesTest.java
* trivially, but it's enough to skip these ones. */ ) { continue; } Class<?> clazz = info.load(); try { Method unused = clazz.getDeclaredMethod("writeReplace"); continue; // It overrides writeReplace, so it's safe. } catch (NoSuchMethodException e) { // This is a class whose supertypes we want to examine. We'll do that below. }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Jul 01 03:07:54 UTC 2025 - 5.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureCancellationCauseTest.java
} private Throwable tryInternalFastPathGetFailure(Future<?> future) throws Exception { Method tryInternalFastPathGetFailureMethod = abstractFutureClass.getDeclaredMethod("tryInternalFastPathGetFailure"); tryInternalFastPathGetFailureMethod.setAccessible(true); return (Throwable) tryInternalFastPathGetFailureMethod.invoke(future); }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 16:03:47 UTC 2025 - 6.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryResponseTest.java
// Use reflection to test private method Method createFileInfoMethod = Smb2QueryDirectoryResponse.class.getDeclaredMethod("createFileInfo"); createFileInfoMethod.setAccessible(true); FileBothDirectoryInfo result = (FileBothDirectoryInfo) createFileInfoMethod.invoke(response); assertNotNull(result); }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 23.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComSessionSetupAndXTest.java
} else { paramTypes[i] = params[i].getClass(); } } var m = cls.getDeclaredMethod(name, paramTypes); m.setAccessible(true); return (int) m.invoke(target, params); } catch (Exception e) { fail("invoke " + name, e); return -1; }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/AbstractFutureFallbackAtomicHelperTest.java
Class<?> abstractFutureStateClass = classLoader.loadClass(AbstractFutureState.class.getName()); Method helperMethod = abstractFutureStateClass.getDeclaredMethod("atomicHelperTypeForTest"); helperMethod.setAccessible(true); assertThat(helperMethod.invoke(null)).isEqualTo(expectedHelperClassName); }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 7.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/net/NetShareEnumResponseTest.java
} private Method getReadStringMethod() throws Exception { Class<?> clazz = response.getClass(); while (clazz != null) { try { Method method = clazz.getDeclaredMethod("readString", byte[].class, int.class, int.class, boolean.class); method.setAccessible(true); return method; } catch (NoSuchMethodException e) {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.2K bytes - Viewed (0)