Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for getDeclaredConstructor (0.23 sec)

  1. src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtCancelTest.java

            void testConstructorInitialization() throws Exception {
                // Given
                int testMid = 42;
    
                // When
                Constructor<SmbComNtCancel> constructor = SmbComNtCancel.class.getDeclaredConstructor(Configuration.class, int.class);
                constructor.setAccessible(true);
                SmbComNtCancel cancel = constructor.newInstance(mockConfig, testMid);
    
                // Then
                assertNotNull(cancel);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  2. fess-crawler/src/test/java/org/codelibs/fess/crawler/exception/CrawlerSystemExceptionTest.java

            // Access protected constructor via reflection
            Constructor<CrawlerSystemException> constructor =
                    CrawlerSystemException.class.getDeclaredConstructor(String.class, boolean.class, boolean.class);
            constructor.setAccessible(true);
    
            // Test with suppression enabled and writable stack trace
            String message1 = "Test with suppression enabled";
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Wed Sep 03 14:42:53 UTC 2025
    - 20K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SessionSetupHandlerTest.java

        void testNoConstructorLookup() {
            // Act & Assert: interfaces have no constructors
            assertThrows(NoSuchMethodException.class, () -> SessionSetupHandler.class.getDeclaredConstructor());
        }
    
        @Test
        @DisplayName("Invalid: resolving class by null name throws NPE")
        void testClassForNameWithNull() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureFallbackAtomicHelperTest.java

        Thread.currentThread().setContextClassLoader(classLoader);
        try {
          Class<?> test = classLoader.loadClass(AbstractFutureTest.class.getName());
          test.getMethod(getName()).invoke(test.getDeclaredConstructor().newInstance());
        } finally {
          Thread.currentThread().setContextClassLoader(oldClassLoader);
        }
      }
    
      private void checkHelperVersion(ClassLoader classLoader, String expectedHelperClassName)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/util/SystemUtilTest.java

        public void test_constructor_isPrivate() {
            // Verify that SystemUtil has a private constructor (utility class pattern)
            try {
                Constructor<SystemUtil> constructor = SystemUtil.class.getDeclaredConstructor();
                assertTrue("Constructor should be private", java.lang.reflect.Modifier.isPrivate(constructor.getModifiers()));
    
                // Test that constructor is accessible when made accessible
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 12.9K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/lang/ClassUtil.java

         * @see Class#getDeclaredConstructor(Class...)
         */
        public static <T> Constructor<T> getDeclaredConstructor(final Class<T> clazz, final Class<?>... argTypes)
                throws NoSuchConstructorRuntimeException {
            assertArgumentNotNull("clazz", clazz);
    
            try {
                return clazz.getDeclaredConstructor(argTypes);
            } catch (final NoSuchMethodException e) {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 25.6K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/validation/CronExpressionTest.java

        }
    
        // Test annotation on constructor parameter
        public void test_annotationOnConstructor() throws Exception {
            java.lang.reflect.Constructor<?> constructor = TestConstructor.class.getDeclaredConstructor(String.class);
            Annotation[][] paramAnnotations = constructor.getParameterAnnotations();
    
            assertEquals(1, paramAnnotations.length);
            boolean hasCronExpression = false;
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/util/concurrent/AggregateFutureStateFallbackAtomicHelperTest.java

        Thread.currentThread().setContextClassLoader(classLoader);
        try {
          Class<?> test = classLoader.loadClass(FuturesTest.class.getName());
          Object testInstance = test.getDeclaredConstructor().newInstance();
          test.getMethod("setUp").invoke(testInstance);
          test.getMethod(getName()).invoke(testInstance);
          test.getMethod("tearDown").invoke(testInstance);
        } finally {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/AbstractFutureFallbackAtomicHelperTest.java

        Thread.currentThread().setContextClassLoader(classLoader);
        try {
          Class<?> test = classLoader.loadClass(AbstractFutureTest.class.getName());
          test.getMethod(getName()).invoke(test.getDeclaredConstructor().newInstance());
        } finally {
          Thread.currentThread().setContextClassLoader(oldClassLoader);
        }
      }
    
      private void checkHelperVersion(ClassLoader classLoader, String expectedHelperClassName)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/util/SearchEngineUtilTest.java

        }
    
        public void test_utility_class_instantiation() {
            // Verify that SearchEngineUtil is a utility class with private constructor
            try {
                SearchEngineUtil.class.getDeclaredConstructor().newInstance();
                fail("Should not be able to instantiate utility class");
            } catch (Exception e) {
                // Expected - utility classes should have private constructors
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 13.6K bytes
    - Viewed (0)
Back to top