Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 63 for getDeclaredMethod (0.07 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.5K bytes
    - Viewed (0)
Back to top