- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 17 for getConstructor (0.09 sec)
-
src/test/java/org/codelibs/core/beans/impl/ConstructorDescTest.java
final ConstructorDesc ctor = beanDesc.getConstructorDesc(); assertThat(ctor, is(notNullValue())); assertThat(ctor.getBeanDesc(), is(sameInstance(beanDesc))); assertThat(ctor.getConstructor(), is((Constructor) MyBean.class.getConstructor())); assertThat(ctor.getParameterTypes().length, is(0)); assertThat(ctor.isPublic(), is(true)); final MyBean myBean = ctor.newInstance();
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 2.9K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/tomcat/webresources/FessWebResourceRootTest.java
FessWebResourceRoot.class.getName()); // Verify constructor exists with Context parameter try { FessWebResourceRoot.class.getConstructor(Context.class); assertTrue("Constructor with Context parameter exists", true); } catch (final NoSuchMethodException e) { fail("Constructor with Context parameter should exist"); }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 4.3K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBenchmark.java
useMonitor ? "com.google.common.util.concurrent.MonitorBased" : "java.util.concurrent."; String className = prefix + queueType + "BlockingQueue"; Constructor<?> constructor = Class.forName(className).getConstructor(int.class); queue = (BlockingQueue<String>) constructor.newInstance(capacity); strings = new String[capacity]; for (int i = 0; i < capacity; i++) { strings[i] = String.valueOf(Math.random()); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 2.1K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/validation/FessActionValidatorTest.java
} public void test_constructorExists() { // Verify constructor exists with expected parameters try { FessActionValidator.class.getConstructor(RequestManager.class, UserMessagesCreator.class, Class[].class); assertTrue("Constructor with required parameters exists", true); } catch (final NoSuchMethodException e) {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 2.7K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/timer/HotThreadMonitorTargetTest.java
} public void test_default_constructor_is_public() throws Exception { assertTrue("Default constructor should be public", java.lang.reflect.Modifier.isPublic(HotThreadMonitorTarget.class.getConstructor().getModifiers())); } public void test_expired_method_is_public() throws Exception { assertTrue("expired method should be public",
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 4K bytes - Viewed (0) -
src/main/java/org/codelibs/core/beans/ConstructorDesc.java
*/ BeanDesc getBeanDesc(); /** * Returns the constructor. * * @param <T> * The type of the Bean * @return The constructor */ <T> Constructor<T> getConstructor(); /** * Returns an array of the parameter types of the constructor. * * @return An array of the parameter types of the constructor */ Class<?>[] getParameterTypes(); /**
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 3.5K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/timer/SystemMonitorTargetTest.java
} public void test_default_constructor_is_public() throws Exception { assertTrue("Default constructor should be public", java.lang.reflect.Modifier.isPublic(SystemMonitorTarget.class.getConstructor().getModifiers())); } public void test_expired_method_is_public() throws Exception { assertTrue("expired method should be public",
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sun Aug 31 08:19:00 UTC 2025 - 8.9K bytes - Viewed (0) -
src/test/java/org/codelibs/core/lang/ClassUtilTest.java
} /** * */ @Test(expected = NoSuchConstructorRuntimeException.class) public void testGetConstructor() { ClassUtil.getConstructor(ClassUtilTest.class, Integer.class); } /** * */ @Test(expected = NoSuchFieldRuntimeException.class) public void testGetField() {
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 6.2K bytes - Viewed (0) -
src/main/java/org/codelibs/core/lang/ClassUtil.java
* If a matching constructor is not found * @see Class#getConstructor(Class...) */ public static <T> Constructor<T> getConstructor(final Class<T> clazz, final Class<?>... argTypes) throws NoSuchConstructorRuntimeException { assertArgumentNotNull("clazz", clazz); try { return clazz.getConstructor(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) -
guava-tests/test/com/google/common/reflect/TypeTokenTest.java
Constructor<String> constructor = String.class.getConstructor(); assertThrows( IllegalArgumentException.class, () -> TypeToken.of(Object.class).constructor(constructor)); } public void testConstructor_declaredBySuperclass() throws NoSuchMethodException { Constructor<Object> constructor = Object.class.getConstructor(); assertThrows(
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Sep 02 17:23:59 UTC 2025 - 89K bytes - Viewed (0)