Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for getDeclaredMethods (0.07 sec)

  1. src/test/java/org/codelibs/fess/timer/SystemMonitorTargetTest.java

            }
        }
    
        public void test_private_methods_exist() throws Exception {
            Method[] methods = SystemMonitorTarget.class.getDeclaredMethods();
            boolean hasAppendOsStats = false;
            boolean hasAppendProcessStats = false;
            boolean hasAppendJvmStats = false;
            boolean hasAppendFesenStats = false;
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sun Aug 31 08:19:00 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SessionSetupHandlerTest.java

        }
    
        @Test
        @DisplayName("Interface declares no methods or fields")
        void testNoMembers() {
            // Assert
            assertEquals(0, SessionSetupHandler.class.getDeclaredMethods().length, "No methods expected");
            assertEquals(0, SessionSetupHandler.class.getDeclaredFields().length, "No fields expected");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/spnego/SpnegoConstantsTest.java

            assertTrue(c.isInterface(), "SpnegoConstants must be an interface");
            assertEquals(4, c.getDeclaredFields().length, "Unexpected number of fields");
            assertEquals(0, c.getDeclaredMethods().length, "No declared methods expected");
            assertEquals(0, c.getDeclaredConstructors().length, "Interfaces have no constructors");
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/SmbSessionTest.java

                assertEquals(4, methods.length, "SmbSession should define exactly 4 methods");
            }
    
            @Test
            @DisplayName("Should have all required method names")
            void shouldHaveAllRequiredMethodNames() {
                java.lang.reflect.Method[] methods = SmbSession.class.getDeclaredMethods();
                java.util.Set<String> methodNames =
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/testing/NullPointerTester.java

         * not safe.
         */
        concat(
                stream(AbstractFuture.class.getDeclaredMethods()),
                stream(requireNonNull(AbstractFuture.class.getSuperclass()).getDeclaredMethods()))
            .filter(
                m ->
                    m.getName().equals("getDoneValue")
                        || m.getName().equals("casValue")
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/testing/ClassSanityTester.java

       */
      public FactoryMethodReturnValueTester forAllPublicStaticMethods(Class<?> cls) {
        ImmutableList.Builder<Invokable<?, ?>> builder = ImmutableList.builder();
        for (Method method : cls.getDeclaredMethods()) {
          Invokable<?, ?> invokable = Invokable.from(method);
          invokable.setAccessible(true);
          if (invokable.isPublic() && invokable.isStatic() && !invokable.isSynthetic()) {
            builder.add(invokable);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 32.5K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/util/ThreadDumpUtilTest.java

            // 2. All public methods should be static
            java.lang.reflect.Method[] methods = ThreadDumpUtil.class.getDeclaredMethods();
            for (java.lang.reflect.Method method : methods) {
                if (java.lang.reflect.Modifier.isPublic(method.getModifiers()) && !method.isSynthetic()) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 15.5K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/util/SystemUtilTest.java

            // 2. All methods should be static
            java.lang.reflect.Method[] methods = SystemUtil.class.getDeclaredMethods();
            for (java.lang.reflect.Method method : methods) {
                if (!method.isSynthetic()) { // Ignore compiler-generated methods
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 12.9K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/FauxveridesTest.java

        }
        return methods;
      }
    
      private static Set<MethodSignature> getPublicStaticMethods(Class<?> clazz) {
        Set<MethodSignature> publicStaticMethods = new HashSet<>();
    
        for (Method method : clazz.getDeclaredMethods()) {
          int modifiers = method.getModifiers();
          if (isPublic(modifiers) && isStatic(modifiers)) {
            publicStaticMethods.add(new MethodSignature(method));
          }
        }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  10. guava/src/com/google/common/eventbus/SubscriberRegistry.java

        Map<MethodIdentifier, Method> identifiers = new HashMap<>();
        for (Class<?> supertype : supertypes) {
          for (Method method : supertype.getDeclaredMethods()) {
            if (method.isAnnotationPresent(Subscribe.class) && !method.isSynthetic()) {
              // TODO(cgdecker): Should check for a generic parameter type and error out
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 10.8K bytes
    - Viewed (0)
Back to top