- Sort Score
- Num 10 results
- Language All
Results 31 - 40 of 79 for getDeclaredMethod (0.12 seconds)
-
src/test/java/org/codelibs/fess/tomcat/webresources/FessWebResourceRootTest.java
// Verify that processWebInfLib method is overridden (it's protected so we can't call it directly) try { final java.lang.reflect.Method method = FessWebResourceRoot.class.getDeclaredMethod("processWebInfLib"); assertNotNull(method, "processWebInfLib method should exist"); assertTrue("processWebInfLib should be protected", java.lang.reflect.Modifier.isProtected(method.getModifiers()));
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 4.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/ForwardingObjectTester.java
@NullUnmarked @GwtIncompatible @J2ktIncompatible final class ForwardingObjectTester { private static final Method DELEGATE_METHOD; static { try { DELEGATE_METHOD = ForwardingObject.class.getDeclaredMethod("delegate"); DELEGATE_METHOD.setAccessible(true); } catch (SecurityException e) { throw new RuntimeException(e); } catch (NoSuchMethodException e) { throw new AssertionError(e); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 2.8K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/ForwardingObjectTester.java
@NullUnmarked @GwtIncompatible @J2ktIncompatible final class ForwardingObjectTester { private static final Method DELEGATE_METHOD; static { try { DELEGATE_METHOD = ForwardingObject.class.getDeclaredMethod("delegate"); DELEGATE_METHOD.setAccessible(true); } catch (SecurityException e) { throw new RuntimeException(e); } catch (NoSuchMethodException e) { throw new AssertionError(e); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 2.8K bytes - Click Count (0) -
src/test/java/jcifs/dcerpc/DcerpcBindTest.java
void testGetResultMessage() throws Exception { // When/Then - Use reflection to test the private static method Method getResultMessageMethod = DcerpcBind.class.getDeclaredMethod("getResultMessage", int.class); getResultMessageMethod.setAccessible(true); assertEquals("0", getResultMessageMethod.invoke(null, 0), "Should return '0' for success");
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 22.7K bytes - Click Count (0) -
src/test/java/jcifs/ntlmssp/Type2MessageTest.java
// Given CIFSContext mockContext = createMockContext(); // When/Then try { java.lang.reflect.Method method = Type2Message.class.getDeclaredMethod("makeTargetInfo", CIFSContext.class, String.class); method.setAccessible(true); byte[] targetInfo = (byte[]) method.invoke(null, mockContext, TEST_DOMAIN);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 38.9K bytes - Click Count (0) -
okhttp/src/androidMain/kotlin/okhttp3/internal/platform/AndroidPlatform.kt
// private TrustAnchor findTrustAnchorByIssuerAndSignature(X509Certificate lastCert); val method = trustManager.javaClass.getDeclaredMethod( "findTrustAnchorByIssuerAndSignature", X509Certificate::class.java, ) method.isAccessible = true CustomTrustRootIndex(trustManager, method)
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Oct 10 05:19:46 GMT 2025 - 6.5K bytes - Click Count (0) -
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();Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.5K bytes - Click Count (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)
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 4.6K bytes - Click Count (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));
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 6.2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/reflect/TypeTokenResolutionTest.java
class Context { @SuppressWarnings("unused") // used by reflection Map<String, Integer> returningMap() { throw new AssertionError(); } } Type context = Context.class.getDeclaredMethod("returningMap").getGenericReturnType(); Type keyType = Map.class.getTypeParameters()[0]; Type valueType = Map.class.getTypeParameters()[1]; // context is parameterized typeCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 19.6K bytes - Click Count (0)