- Sort Score
- Result 10 results
- Languages All
Results 131 - 140 of 333 for reflection (0.05 sec)
-
guava-testlib/src/com/google/common/collect/testing/testers/MapCreationTester.java
* tests can suppress it with {@code FeatureSpecificTestSuiteBuilder.suppressing()} until <a * href="https://bugs.openjdk.org/browse/JDK-5045147">JDK-5045147</a> is fixed. */ @J2ktIncompatible @GwtIncompatible // reflection public static Method getCreateWithNullKeyUnsupportedMethod() { return getMethod(MapCreationTester.class, "testCreateWithNullKeyUnsupported"); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 5.6K 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-tests/test/com/google/common/collect/EnumHashBiMapTest.java
@GwtIncompatible @J2ktIncompatible public void testSerializable() { SerializableTester.reserializeAndAssert(EnumHashBiMap.create(Currency.class)); } @J2ktIncompatible @GwtIncompatible // reflection public void testNulls() { new NullPointerTester().testAllPublicStaticMethods(EnumHashBiMap.class); new NullPointerTester().testAllPublicInstanceMethods(EnumHashBiMap.create(Currency.class)); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 8.3K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/MapPutAllTester.java
* can suppress it with {@code FeatureSpecificTestSuiteBuilder.suppressing()} until <a * href="https://bugs.openjdk.org/browse/JDK-5045147">JDK-5045147</a> is fixed. */ @J2ktIncompatible @GwtIncompatible // reflection public static Method getPutAllNullKeyUnsupportedMethod() { return getMethod(MapPutAllTester.class, "testPutAll_nullKeyUnsupported"); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 6.8K bytes - Viewed (0) -
android/guava-testlib/test/com/google/common/testing/anotherpackage/ForwardingWrapperTesterTest.java
import junit.framework.AssertionFailedError; import junit.framework.TestCase; import org.jspecify.annotations.Nullable; /** * Tests for {@link ForwardingWrapperTester}. Live in a different package to detect reflection * access issues, if any. * * @author Ben Yu */ public class ForwardingWrapperTesterTest extends TestCase { private final ForwardingWrapperTester tester = new ForwardingWrapperTester();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Jul 14 14:44:08 UTC 2025 - 15.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbEnumerationUtilTest.java
// Assert assertNotNull(unwrapped); assertTrue(unwrapped instanceof DosFileFilter); // Verify fields preserved (via reflection since they are protected) var wildcardField = DosFileFilter.class.getDeclaredField("wildcard"); wildcardField.setAccessible(true);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.1K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/helper/KeyMatchHelperTest.java
// assertEquals(0, result.size()); // Commented out due to variable scope // No data loaded } public void test_toLowerCase_privateMethod() throws Exception { // Test private method using reflection Method method = KeyMatchHelper.class.getDeclaredMethod("toLowerCase", String.class); method.setAccessible(true); String result = (String) method.invoke(keyMatchHelper, "JAVA");
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 19 23:49:30 UTC 2025 - 10.1K bytes - Viewed (0)