- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 17 for getDeclaredConstructor (0.07 sec)
-
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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.8K bytes - Viewed (0) -
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: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Wed Sep 03 14:42:53 UTC 2025 - 20K bytes - Viewed (0) -
android/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); assertEquals(constructor.getName(), invokable.getName()); assertEquals(A.class, invokable.getDeclaringClass());Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Jul 16 17:42:14 UTC 2025 - 30.7K bytes - Viewed (0) -
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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.3K bytes - Viewed (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/logging/Slf4jConfigurationFactory.java
String impl = properties.getProperty(slf4jBinding); if (impl != null) { return (Slf4jConfiguration) Class.forName(impl).getDeclaredConstructor().newInstance(); } } catch (IOException | ClassNotFoundException | NoSuchMethodException
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Nov 08 08:49:11 UTC 2024 - 3.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/FinalizableReferenceQueueClassLoaderUnloadingTest.java
// exercise some classes from the parallel ClassLoader. AtomicReference<Object> sepFrqA = new AtomicReference<Object>(sepFrqC.getDeclaredConstructor().newInstance()); Class<?> sepFwrC = sepLoader.loadClass(MyFinalizableWeakReference.class.getName()); Constructor<?> sepFwrCons = sepFwrC.getConstructor(Object.class, sepFrqC);Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 7.6K bytes - Viewed (0) -
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: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 25.6K bytes - Viewed (0) -
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 Dec 26 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 6.5K bytes - Viewed (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); } @TestRegistered: Sat Dec 20 09:13:53 UTC 2025 - Last Modified: Thu Nov 20 13:34:13 UTC 2025 - 16.3K bytes - Viewed (0) -
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 Dec 26 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 7.3K bytes - Viewed (0)