- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 18 for getDeclaredConstructor (0.13 seconds)
-
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) {Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jul 31 08:16:49 GMT 2025 - 25.6K bytes - Click Count (0) -
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);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 12.8K bytes - Click Count (0) -
guava-tests/test/com/google/common/reflect/InvokableTest.java
@Tested public final void publicFinalMethod() {} void notAnnotatedMethod() {} static Invokable<A, A> constructor() throws Exception { Constructor<A> constructor = A.class.getDeclaredConstructor(Object.class); Invokable<A, A> invokable = Invokable.from(constructor); assertThat(invokable.getName()).isEqualTo(constructor.getName()); assertEquals(A.class, invokable.getDeclaringClass());Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 31.1K bytes - Click Count (0) -
guava-testlib/src/com/google/common/testing/ClassSanityTester.java
cpovirk <******@****.***> 1754701862 -0700
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Aug 09 01:14:59 GMT 2025 - 32.5K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java
cpovirk <******@****.***> 1775141306 -0700
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Apr 02 14:49:41 GMT 2026 - 32.5K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/script/groovy/GroovyEngine.java
bindingMap.put("container", SingletonLaContainerFactory.getContainer()); try { final CachedScript cached = getOrCompile(template); final Script script = cached.scriptClass.getDeclaredConstructor().newInstance(); script.setBinding(new Binding(bindingMap)); if (logger.isDebugEnabled()) { logger.debug("Evaluating Groovy script: template={}", template); }
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 26 14:36:23 GMT 2026 - 11.9K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/validation/CronExpressionTest.java
} // Test annotation on constructor parameter @Test 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;Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 12.5K bytes - Click Count (0) -
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
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 17.1K bytes - Click Count (0) -
src/test/java/org/codelibs/curl/CurlTest.java
// ## Test that protected constructor can be accessed via reflection ## // ## Act ## final Constructor<Curl> constructor = Curl.class.getDeclaredConstructor(); constructor.setAccessible(true); final Curl instance = constructor.newInstance(); // ## Assert ## assertNotNull(instance); } @TestCreated: Thu Apr 02 15:34:12 GMT 2026 - Last Modified: Thu Nov 20 13:34:13 GMT 2025 - 16.3K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/util/SearchEngineUtilTest.java
} @Test 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 constructorsCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 13.8K bytes - Click Count (0)