- Sort Score
- Result 10 results
- Languages All
Results 151 - 160 of 274 for Reflection (0.06 sec)
-
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 }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 12.8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComTransactionResponseTest.java
} @Override int readDataWireFormat(byte[] buffer, int bufferIndex, int len) { return 0; } // Helper methods to access private fields using reflection protected void setFieldValue(String fieldName, Object value) { try { Field field = null; Class<?> clazz = this.getClass();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/StringsTest.java
public void testLenientFormat_nullArrayVarargs() { assertEquals("(Object[])null", Strings.lenientFormat("%s", (Object[]) null)); } @GwtIncompatible // GWT reflection includes less data public void testLenientFormat_badArgumentToString() { assertThat(Strings.lenientFormat("boiler %s plate", new ThrowsOnToString())) .matches(
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Aug 27 17:53:41 UTC 2025 - 10.5K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/FuturesGetChecked.java
} /** * Provides a check of whether an exception type is valid for use with {@link * FuturesGetChecked#getChecked(Future, Class)}, possibly using caching. * * <p>Uses reflection to gracefully fall back to when certain implementations aren't available. */ private static final class GetCheckedTypeValidatorHolder { static final String CLASS_VALUE_VALIDATOR_NAME =
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 11.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/PredicatesTest.java
} @J2ktIncompatible @GwtIncompatible // reflection public void testNulls() throws Exception { new ClassSanityTester().forAllPublicStaticMethods(Predicates.class).testNulls(); } @J2ktIncompatible @GwtIncompatible // reflection @AndroidIncompatible // TODO(cpovirk): ClassNotFoundException: com.google.common.base.Function
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 32.2K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/dict/mapping/CharMappingItemTest.java
assertEquals("single", item.getInputsValue()); } public void test_getInputsValue_withNullInputs() { // Create item and then set inputs to null via reflection or subclass CharMappingItem item = new CharMappingItem(1L, new String[] { "temp" }, "output") { @Override public String getInputsValue() { // Simulate null inputs scenario
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 12.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2ConstantsTest.java
// Force accessibility and create instance to achieve coverage constructor.setAccessible(true); assertNotNull(constructor.newInstance(), "Should be able to create instance via reflection"); } @Nested @DisplayName("Header Constants") class HeaderConstants { @Test @DisplayName("SMB2 header length should be 64 bytes") void testSmb2HeaderLength() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbSessionImplTest.java
// Absent key -> CIFSException CIFSException noKey = assertThrows(CIFSException.class, session::getSessionKey); assertTrue(noKey.getMessage().contains("No session key")); // Set a key via reflection and verify retrieval byte[] key = new byte[] { 1, 2, 3, 4 }; setField(session, "sessionKey", key); assertArrayEquals(key, session.getSessionKey()); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.5K bytes - Viewed (0) -
src/test/java/jcifs/http/NtlmHttpURLConnectionTest.java
// Mock the handshake process to do nothing complex mockResponse(HTTP_OK, "OK", null, null); // Act & Assert assertDoesNotThrow(() -> spiedConnection.getResponseCode()); // Use reflection to verify handshake method is called assertDoesNotThrow(() -> spiedConnection.getResponseCode()); assertDoesNotThrow(() -> spiedConnection.getInputStream()); } /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.6K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/Helpers.java
private NullsBeforeTwo() { super("two"); // from TestStringSortedMapGenerator's sample keys } } @J2ktIncompatible @GwtIncompatible // reflection public static Method getMethod(Class<?> clazz, String name) { try { return clazz.getMethod(name); } catch (Exception e) { throw new IllegalArgumentException(e); } }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Aug 10 19:54:19 UTC 2025 - 17.2K bytes - Viewed (0)