- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 17 for getDeclaredMethod (0.07 sec)
-
src/test/java/org/codelibs/fess/exec/ThumbnailGeneratorTest.java
options.numOfThreads = 1; options.cleanup = false; // Setup mock components setupMockComponents(); Method processMethod = ThumbnailGenerator.class.getDeclaredMethod("process", ThumbnailGenerator.Options.class); processMethod.setAccessible(true); try { Integer result = (Integer) processMethod.invoke(null, options); assertNotNull(result);Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 11.1K 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) -
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/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);
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 11.1K bytes - Viewed (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]); } public void test_protectedMethodAnnotation() throws NoSuchMethodException { Method method = PrivateMethodClass.class.getDeclaredMethod("protectedMethod");Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 15.2K 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) -
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("processWebInfLib method should exist", method); assertTrue("processWebInfLib should be protected", java.lang.reflect.Modifier.isProtected(method.getModifiers()));
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 4.3K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/exec/CrawlerTest.java
} } // Test getValueFromMap private method via reflection public void test_getValueFromMap() throws Exception { Method method = Crawler.class.getDeclaredMethod("getValueFromMap", Map.class, String.class, String.class); method.setAccessible(true); Map<String, String> dataMap = new HashMap<>(); dataMap.put("key1", "value1");Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 30.5K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/ldap/LdapUserTest.java
} // Helper method to invoke the private distinct method private String[] invokeDistinct(String[] values) { try { java.lang.reflect.Method method = LdapUser.class.getDeclaredMethod("distinct", String[].class); method.setAccessible(true); return (String[]) method.invoke(null, (Object) values); } 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 - 16.6K bytes - Viewed (0)