Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 27 of 27 for getDeclaredConstructor (0.1 seconds)

  1. src/test/java/org/codelibs/fess/util/ThreadDumpUtilTest.java

            // Verify that ThreadDumpUtil has a protected constructor (utility class pattern)
            try {
                Constructor<ThreadDumpUtil> constructor = ThreadDumpUtil.class.getDeclaredConstructor();
                assertTrue("Constructor should be protected", java.lang.reflect.Modifier.isProtected(constructor.getModifiers()));
    
                // Test that constructor is accessible when made accessible
    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)
  2. src/test/java/jcifs/smb/SmbEnumerationUtilTest.java

            try {
                Class<?> cls = Class.forName("jcifs.smb.SmbEnumerationUtil$" + simpleName);
                Constructor<?> ctor = cls.getDeclaredConstructor(paramTypes);
                ctor.setAccessible(true);
                return ctor.newInstance(args);
            } catch (ClassNotFoundException | NoSuchMethodException | InstantiationException | IllegalAccessException
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 17.1K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/util/WebApiUtilTest.java

        public void test_constructor_isPrivate() {
            // Verify that WebApiUtil has a private constructor (utility class pattern)
            try {
                Constructor<WebApiUtil> constructor = WebApiUtil.class.getDeclaredConstructor();
                assertTrue("Constructor should be private", java.lang.reflect.Modifier.isPrivate(constructor.getModifiers()));
    
                // Test that constructor is accessible when made accessible
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 17.4K bytes
    - Click Count (0)
  4. src/test/java/jcifs/util/StringsTest.java

                // When & Then - verify constructor is private by reflection
                assertDoesNotThrow(() -> {
                    java.lang.reflect.Constructor<Strings> constructor = Strings.class.getDeclaredConstructor();
                    assertTrue(java.lang.reflect.Modifier.isPrivate(constructor.getModifiers()), "Constructor should be private");
                }, "Should be able to access private constructor via reflection");
            }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 18.6K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/suggest/util/SuggestUtilTest.java

        @Test
        public void testPrivateConstructor() throws Exception {
            // Test that SuggestUtil has a private constructor to prevent instantiation
            Constructor<SuggestUtil> constructor = SuggestUtil.class.getDeclaredConstructor();
            assertTrue(Modifier.isPrivate(constructor.getModifiers()));
    
            // Make it accessible to test it throws no exception
            constructor.setAccessible(true);
            constructor.newInstance();
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Mon Nov 24 03:40:05 GMT 2025
    - 26.7K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/util/KuromojiCSVUtilTest.java

            // Verify that KuromojiCSVUtil has a private constructor (utility class pattern)
            try {
                Constructor<KuromojiCSVUtil> constructor = KuromojiCSVUtil.class.getDeclaredConstructor();
                assertTrue("Constructor should be private", java.lang.reflect.Modifier.isPrivate(constructor.getModifiers()));
    
                // Test that constructor is accessible when made accessible
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 18.9K bytes
    - Click Count (0)
  7. guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java

          checkNotNull(o);
        }
      }
    
      public void testConstructor_ignored_shouldPass() throws Exception {
        new NullPointerTester()
            .ignore(FailOnOneOfTwoConstructors.class.getDeclaredConstructor(String.class))
            .testAllPublicConstructors(FailOnOneOfTwoConstructors.class);
      }
    
      public void testConstructor_shouldFail() throws Exception {
        try {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 47.9K bytes
    - Click Count (0)
Back to Top