- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 21 for getDeclaredMethod (0.1 sec)
-
android/guava-tests/test/com/google/common/reflect/TypeParameterTest.java
public <T> void testCaptureTypeParameter() throws Exception { TypeVariable<?> variable = new TypeParameter<T>() {}.typeVariable; TypeVariable<?> expected = TypeParameterTest.class.getDeclaredMethod("testCaptureTypeParameter") .getTypeParameters()[0]; assertEquals(expected, variable); } public void testConcreteTypeRejected() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 1.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/MultiChannelManagerBasicTest.java
// Use reflection to access private method for testing Exception exception = assertThrows(Exception.class, () -> { java.lang.reflect.Method method = MultiChannelManager.class.getDeclaredMethod("createChannelTransport", InetAddress.class, InetAddress.class); method.setAccessible(true); method.invoke(multiChannelManager, null, null); });
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 4K bytes - Viewed (0) -
guava-tests/test/com/google/common/reflect/TypeParameterTest.java
public <T> void testCaptureTypeParameter() throws Exception { TypeVariable<?> variable = new TypeParameter<T>() {}.typeVariable; TypeVariable<?> expected = TypeParameterTest.class.getDeclaredMethod("testCaptureTypeParameter") .getTypeParameters()[0]; assertEquals(expected, variable); } public void testConcreteTypeRejected() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 1.9K bytes - Viewed (0) -
src/test/java/org/codelibs/core/beans/impl/MethodDescTest.java
assertThat(bar, is(notNullValue())); assertThat(bar.getBeanDesc(), is(sameInstance(beanDesc))); assertThat(bar.getMethod(), is(MyBean.class.getDeclaredMethod("bar", String.class))); assertThat(bar.getParameterTypes().length, is(1)); assertThat(bar.getMethodName(), is("bar")); assertThat(bar.isPublic(), is(true));
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 3.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/eventbus/SubscriberTest.java
.addEqualityGroup(Subscriber.create(bus, "foo", concat)) .testEquals(); } private Method getTestSubscriberMethod(String name) { try { return getClass().getDeclaredMethod(name, Object.class); } catch (NoSuchMethodException e) { throw new AssertionError(); } } /**
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Feb 13 17:34:21 UTC 2025 - 4.8K bytes - Viewed (0) -
src/test/java/jcifs/https/HandlerTest.java
void testProtectedMethodAccess() throws Exception { // Given Handler testHandler = new Handler(null); // When Method method = Handler.class.getDeclaredMethod("getDefaultPort"); // Then assertTrue(Modifier.isProtected(method.getModifiers())); method.setAccessible(true); // Required to invoke protected method
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.6K bytes - Viewed (0) -
src/test/java/org/codelibs/core/lang/ModifierUtilTest.java
*/ public void testIsPublic() throws Exception { final Field f = Hoge.class.getDeclaredField("s"); assertTrue(ModifierUtil.isPublicStaticFinalField(f)); final Method m = Hoge.class.getDeclaredMethod("hoge", new Class[] {}); assertTrue(ModifierUtil.isPublic(m)); } /** * @throws Exception */ public void testIsInstanceField() throws Exception {
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 2.4K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessListedClassificationProviderTest.java
private ClassificationMeta invokeMethod(Object obj, String methodName, String param) { try { java.lang.reflect.Method method = obj.getClass().getDeclaredMethod(methodName, String.class); method.setAccessible(true); return (ClassificationMeta) method.invoke(obj, param); } catch (Exception e) { throw new RuntimeException(e);
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 7.5K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessCurtainFinallyHookTest.java
public void hook(final FwAssistantDirector assistantDirector) { // Use reflection to call private method try { Method method = FessCurtainFinallyHook.class.getDeclaredMethod("shutdownCommonsHttpClient"); method.setAccessible(true); method.invoke(this); } catch (Exception e) { // Expected to catch exception silently
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 8.7K bytes - Viewed (0) -
android-test-app/src/main/kotlin/okhttp/android/testapp/TestApplication.kt
private fun getProcess(): String? = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) { getProcessName() } else { Class .forName("android.app.ActivityThread") .getDeclaredMethod("currentProcessName") .apply { isAccessible = true } .invoke(null) as String }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Tue Aug 19 08:10:39 UTC 2025 - 1.3K bytes - Viewed (0)