- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 63 for getDeclaredMethod (0.54 sec)
-
src/test/java/jcifs/smb/SmbEnumerationUtilTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.1K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java
} catch (NoSuchMethodException e) { continue; } } return false; } private static boolean isEqualsDefined(Class<?> cls) { try { return !cls.getDeclaredMethod("equals", Object.class).isSynthetic(); } catch (NoSuchMethodException e) { return false; } } abstract static class Chopper { final Chopper or(Chopper you) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 17.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTimingAttackTest.java
*/ @Test public void testConstantTimeMethodExists() throws Exception { // Use reflection to verify the constant-time method exists Method constantTimeMethod = NtlmPasswordAuthenticator.class.getDeclaredMethod("constantTimeEquals", char[].class, char[].class); assertNotNull(constantTimeMethod, "constantTimeEquals method should exist"); constantTimeMethod.setAccessible(true); // Test the method directly
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 11.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/PreauthIntegrityTest.java
return null; } private Method findMethod(Class<?> clazz, String methodName, Class<?>... paramTypes) { while (clazz != null) { try { return clazz.getDeclaredMethod(methodName, paramTypes); } catch (NoSuchMethodException e) { clazz = clazz.getSuperclass(); } } return null; }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 10.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/info/Smb2SetInfoRequestTest.java
request.setInfo(mockInfo); // Set up header start for offset calculation try { Method getHeaderStartMethod = ServerMessageBlock2.class.getDeclaredMethod("getHeaderStart"); getHeaderStartMethod.setAccessible(true); // Create a buffer and write byte[] buffer = new byte[256];
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.9K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/validation/CronExpressionTest.java
} // Test annotation on method parameter public void test_annotationOnMethod() throws Exception { Method method = TestService.class.getDeclaredMethod("scheduledTask", String.class); Annotation[][] paramAnnotations = method.getParameterAnnotations(); assertEquals(1, paramAnnotations.length); boolean hasCronExpression = false;
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/session/Smb2SessionSetupRequestTest.java
// Use reflection to access pad8 method Method pad8Method = ServerMessageBlock2.class.getDeclaredMethod("pad8", int.class); pad8Method.setAccessible(true); // Test various positions int[] positions = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 15, 16 }; for (int pos : positions) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 21.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectRequestTest.java
Smb2TreeDisconnectRequest request = new Smb2TreeDisconnectRequest(mockConfig); // Access size8 method via reflection Method size8Method = ServerMessageBlock2.class.getDeclaredMethod("size8", int.class); size8Method.setAccessible(true); // When & Then - test various sizes for 8-byte alignment assertEquals(8, size8Method.invoke(request, 1));
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/internal/smb2/tree/Smb2TreeDisconnectResponseTest.java
// Test that response inherits state tracking from ServerMessageBlock2Response // Initially not received Method isReceivedMethod = ServerMessageBlock2Response.class.getDeclaredMethod("isReceived"); isReceivedMethod.setAccessible(true); assertFalse((boolean) isReceivedMethod.invoke(response)); // Test reset method response.reset();
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/org/codelibs/fess/helper/CrawlingConfigHelperTest.java
} 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); assertNull(getIdMethod.invoke(crawlingConfigHelper, (String) null)); assertNull(getIdMethod.invoke(crawlingConfigHelper, ""));
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 19 23:49:30 UTC 2025 - 34.9K bytes - Viewed (0)