- Sort Score
- Num 10 results
- Language All
Results 201 - 210 of 733 for reflection (0.07 seconds)
-
src/test/java/org/codelibs/fess/sso/saml/SamlAuthenticatorTest.java
// Ensure the property is not set DynamicProperties systemProperties = ComponentUtil.getSystemProperties(); systemProperties.remove("saml.sp.base.url"); // Use reflection to access protected method Method buildDefaultUrlMethod = SamlAuthenticator.class.getDeclaredMethod("buildDefaultUrl", String.class); buildDefaultUrlMethod.setAccessible(true);Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 18.4K bytes - Click Count (0) -
guava-testlib/src/com/google/common/testing/NullPointerTester.java
// Don't use cls.getPackage() because it does nasty things like reading // a file. String visiblePackage = Reflection.getPackageName(cls); ImmutableList.Builder<Method> builder = ImmutableList.builder(); for (Class<?> type : TypeToken.of(cls).getTypes().rawTypes()) { if (!Reflection.getPackageName(type).equals(visiblePackage)) { break; }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Jul 14 14:44:08 GMT 2025 - 25.4K bytes - Click Count (0) -
android/guava/src/com/google/common/eventbus/EventBus.java
* complicate debugging, lead to unintentional reentrant calls, and force apps to eagerly * initialize all possible subscribers at startup time. * <li>It uses reflection in ways that break when code is processed by optimizers/minimizers like * <a href="https://developer.android.com/studio/build/shrink-code">R8 and Proguard</a>.
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Dec 21 03:10:51 GMT 2024 - 12.7K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/reflect/TypeTokenResolutionTest.java
} public void testContextIsParameterizedType() throws Exception { class Context { @SuppressWarnings("unused") // used by reflection Map<String, Integer> returningMap() { throw new AssertionError(); } } Type context = Context.class.getDeclaredMethod("returningMap").getGenericReturnType();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 19.6K bytes - Click Count (0) -
guava-tests/test/com/google/common/reflect/TypeTokenResolutionTest.java
} public void testContextIsParameterizedType() throws Exception { class Context { @SuppressWarnings("unused") // used by reflection Map<String, Integer> returningMap() { throw new AssertionError(); } } Type context = Context.class.getDeclaredMethod("returningMap").getGenericReturnType();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 19.6K bytes - Click Count (0) -
src/test/java/jcifs/http/NetworkExplorerTest.java
verify(response, atLeastOnce()).setStatus(HttpServletResponse.SC_OK); } } /** * Helper method to set fields via reflection */ private void setFieldsViaReflection(NetworkExplorer explorer, boolean enableBasic, String realm) throws Exception { java.lang.reflect.Field styleField = NetworkExplorer.class.getDeclaredField("style");
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 21 04:51:33 GMT 2025 - 21.2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java
/* * We'd use assertThrows here, but that causes no exception to be thrown under Java 8, * presumably because the ThrowingRunnable lambda triggers some kind of bug in Java 8's * reflection implementation. */ try { new TypeToken<T>() {}; fail(); } catch (IllegalStateException expected) { // Type variables aren't allowed. } }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 89.3K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/helper/CrawlingConfigHelperTest.java
assertEquals("21T", crawlingConfigHelper.getDefaultConfig(ConfigType.DATA).get().getId()); } @Test public void test_getId() { // Test getId method through reflection since it's protected try { java.lang.reflect.Method getIdMethod = CrawlingConfigHelper.class.getDeclaredMethod("getId", String.class); getIdMethod.setAccessible(true);
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 35.3K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java
Multimap<String, Integer> multimap = ImmutableListMultimap.of(); assertThat(SerializableTester.reserialize(multimap)).isSameInstanceAs(multimap); } @J2ktIncompatible @GwtIncompatible // reflection public void testNulls() throws Exception { NullPointerTester tester = new NullPointerTester(); tester.testAllPublicStaticMethods(ImmutableListMultimap.class);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 24.2K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/ds/DataStoreFactoryTest.java
// Note: ResourceUtil.getPluginJarFiles is a static method, so we can't mock it directly // The test will verify the method works with the actual ResourceUtil implementation // Test with reflection to access protected method List<String> names = testFactory.loadDataStoreNameList(); assertTrue(names.isEmpty() || names.size() >= 0); // Will be empty due to ResourceUtil static method }Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 18.2K bytes - Click Count (0)