Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 141 - 150 of 167 for setAccessible (0.12 seconds)

  1. src/test/java/jcifs/internal/smb2/Smb2ConstantsTest.java

            assertTrue(Modifier.isPrivate(constructor.getModifiers()), "Constructor should be private");
    
            // Force accessibility and create instance to achieve coverage
            constructor.setAccessible(true);
            assertNotNull(constructor.newInstance(), "Should be able to create instance via reflection");
        }
    
        @Nested
        @DisplayName("Header Constants")
        class HeaderConstants {
    
            @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 14.1K bytes
    - Click Count (0)
  2. src/test/java/jcifs/smb/SmbSessionImplTest.java

        private static void setField(Object target, String name, Object value) {
            try {
                Field f = target.getClass().getDeclaredField(name);
                f.setAccessible(true);
                f.set(target, value);
            } catch (Exception e) {
                throw new RuntimeException(e);
            }
        }
    
        @Test
        @DisplayName("getters and basic state (happy path)")
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 12.5K bytes
    - Click Count (0)
  3. src/test/java/jcifs/MsrpcDfsRootEnumTest.java

        private void setDfsEnumArray(MsrpcDfsRootEnum target, netdfs.DfsEnumArray200 array) throws Exception {
            Field eField = netdfs.DfsEnumStruct.class.getDeclaredField("e");
            eField.setAccessible(true);
            eField.set(target.info, array);
        }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 12.9K bytes
    - Click Count (0)
  4. compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/StringSearchModelInterpolator.java

                }
            }
    
            abstract static class CacheField {
                final Field field;
    
                CacheField(Field field) {
                    this.field = field;
                    field.setAccessible(true);
                }
    
                void interpolate(Object target, InterpolateObjectAction interpolateObjectAction) {
                    try {
                        doInterpolate(target, interpolateObjectAction);
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jan 10 07:09:12 GMT 2025
    - 15.6K bytes
    - Click Count (0)
  5. guava-testlib/src/com/google/common/testing/NullPointerTester.java

       *
       * @param instance the instance to invoke {@code method} on, or null if {@code method} is static
       */
      public void testMethodParameter(@Nullable Object instance, Method method, int paramIndex) {
        method.setAccessible(true);
        testParameter(instance, invokable(instance, method), paramIndex, method.getDeclaringClass());
      }
    
      /**
       * Verifies that {@code ctor} produces a {@link NullPointerException} or {@link
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Jul 14 14:44:08 GMT 2025
    - 25.4K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/util/ThreadDumpUtilTest.java

                assertTrue("Constructor should be protected", java.lang.reflect.Modifier.isProtected(constructor.getModifiers()));
    
                // Test that constructor is accessible when made accessible
                constructor.setAccessible(true);
                ThreadDumpUtil instance = constructor.newInstance();
                assertNotNull(instance);
    
    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)
  7. src/main/java/org/codelibs/core/beans/impl/PropertyDescImpl.java

        }
    
        private void setMethodAccessible(Method method) {
            if (isExceptPrivateAccessible(method)) {
                return;
            }
            try {
                method.setAccessible(true);
            } catch (RuntimeException e) {
                throw new BeanMethodSetAccessibleFailureException(beanDesc.getBeanClass(), method, e);
            }
        }
    
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 24 01:52:43 GMT 2025
    - 15.1K bytes
    - Click Count (0)
  8. compat/maven-model/src/test/java/org/apache/maven/model/pom/PomMemoryAnalyzer.java

                    if (Modifier.isStatic(field.getModifiers()) || field.isSynthetic()) {
                        continue;
                    }
    
                    try {
                        field.setAccessible(true);
                        Object value = field.get(node);
                        if (value == null) {
                            continue;
                        }
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Mar 21 04:56:21 GMT 2025
    - 13.4K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/job/CrawlJobTest.java

                try {
                    java.lang.reflect.Field propField = org.lastaflute.core.direction.ObjectiveConfig.class.getDeclaredField("prop");
                    propField.setAccessible(true);
                    propField.set(this, new org.dbflute.helper.jprop.ObjectiveProperties("test.properties"));
                } catch (Exception e) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 25K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/fess/ldap/LdapUserTest.java

        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);
            }
        }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 16.9K bytes
    - Click Count (0)
Back to Top