- Sort Score
- Num 10 results
- Language All
Results 21 - 30 of 79 for getDeclaredMethod (0.15 seconds)
-
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 {Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 2.4K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/app/web/admin/design/AdminDesignActionTest.java
Method method = AdminDesignAction.class.getDeclaredMethod("isValidUploadPath", File.class, File.class); method.setAccessible(true); return (Boolean) method.invoke(action, file, baseDir); } private Boolean invokeIsValidVirtualHostPath(String path) throws Exception { Method method = AdminDesignAction.class.getDeclaredMethod("isValidVirtualHostPath", String.class);Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 13.6K bytes - Click Count (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));
Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 3.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/reflect/TypesTest.java
static WildcardType getWildcardType(String methodName) throws Exception { ParameterizedType parameterType = (ParameterizedType) WithWildcardType.class.getDeclaredMethod(methodName, List.class) .getGenericParameterTypes()[0]; return (WildcardType) parameterType.getActualTypeArguments()[0]; } } public void testNewWildcardType() throws Exception {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 15.5K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/annotation/SecuredTest.java
Method method = PrivateMethodClass.class.getDeclaredMethod("privateMethod"); Secured secured = method.getAnnotation(Secured.class); assertNotNull(secured); assertEquals("PRIVATE_ROLE", secured.value()[0]); } @Test public void test_protectedMethodAnnotation() throws NoSuchMethodException { Method method = PrivateMethodClass.class.getDeclaredMethod("protectedMethod");Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 15.6K bytes - Click Count (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
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 8.7K bytes - Click Count (0) -
guava-tests/test/com/google/common/reflect/InvokableTest.java
return invokable; } static Invokable<?, Object> method(String name, Class<?>... parameterTypes) throws Exception { Invokable<?, Object> invokable = Invokable.from(A.class.getDeclaredMethod(name, parameterTypes)); assertThat(invokable.getName()).isEqualTo(name); assertEquals(A.class, invokable.getDeclaringClass()); return invokable; } native void nativeMethod();Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 31.1K bytes - Click Count (0) -
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/rerun/TestTaskConfigurer.java
} } private static Method declaredMethod(Class<?> type, String methodName, Class<?>... paramTypes) { try { return makeAccessible(type.getDeclaredMethod(methodName, paramTypes)); } catch (NoSuchMethodException e) { throw new RuntimeException(e); } } private static Method makeAccessible(Method method) {Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Jun 01 09:19:30 GMT 2021 - 3.1K bytes - Click Count (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
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 6.6K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/exec/SuggestCreatorTest.java
options.propertiesPath = tempPropFile.getAbsolutePath(); // Setup minimal mock components setupMockComponents(); Method processMethod = SuggestCreator.class.getDeclaredMethod("process", SuggestCreator.Options.class); processMethod.setAccessible(true); try { Integer result = (Integer) processMethod.invoke(null, options);
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 11K bytes - Click Count (0)