- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 49 for getDeclaredMethod (1.46 sec)
-
src/test/java/jcifs/internal/smb1/net/NetServerEnum2ResponseTest.java
} private Method getReadStringMethod() throws Exception { Class<?> clazz = response.getClass(); while (clazz != null) { try { Method method = clazz.getDeclaredMethod("readString", byte[].class, int.class, int.class, boolean.class); method.setAccessible(true); return method; } catch (NoSuchMethodException e) {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 25.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationResponseTest.java
@Test void testCreateInfo_AllInformationLevels() throws Exception { // Test createInfo private method with all supported levels Method createInfoMethod = Trans2QueryFSInformationResponse.class.getDeclaredMethod("createInfo"); createInfoMethod.setAccessible(true); // Test SMB_INFO_ALLOCATION response = new Trans2QueryFSInformationResponse(config, FileSystemInformation.SMB_INFO_ALLOCATION);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.9K 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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 21.2K 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 directlyRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 11.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbEnumerationUtilTest.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.1K 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: Sat Dec 20 13:44:44 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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.9K 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: Sat Dec 20 13:44:44 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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.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 Dec 26 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 17.8K bytes - Viewed (0)