- Sort Score
- Num 10 results
- Language All
Results 41 - 50 of 167 for setAccessible (0.07 seconds)
-
src/test/java/jcifs/smb/SmbPipeInputStreamTest.java
statusField.setAccessible(true); statusField.setInt(resp, status); Field availField = TransPeekNamedPipeResponse.class.getDeclaredField("available"); availField.setAccessible(true); availField.setInt(resp, 123); return resp;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.9K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessCurtainFinallyHookTest.java
// Use reflection to call private method try { Method method = FessCurtainFinallyHook.class.getDeclaredMethod("shutdownCommonsHttpClient"); method.setAccessible(true); method.invoke(this); } catch (Exception e) { // Expected to catch exception silently } } };Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 8.7K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyRequestTest.java
// When request.setNotifyFlags(flags); // Then Field notifyFlagsField = Smb2ChangeNotifyRequest.class.getDeclaredField("notifyFlags"); notifyFlagsField.setAccessible(true); assertEquals(flags, notifyFlagsField.getInt(request)); } @Test @DisplayName("Should set completion filter correctly") void testSetCompletionFilter() throws Exception {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 17.1K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/ds/callback/IndexUpdateCallbackImplTest.java
systemHelperField.setAccessible(true); systemHelperField.set(null, null); java.lang.reflect.Field indexingHelperField = ComponentUtil.class.getDeclaredField("indexingHelper"); indexingHelperField.setAccessible(true); indexingHelperField.set(null, null);Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 24.7K bytes - Click Count (0) -
src/test/java/jcifs/dcerpc/msrpc/MsrpcSamrConnect2Test.java
// Then - Use reflection to verify protected field Field ptypeField = DcerpcMessage.class.getDeclaredField("ptype"); ptypeField.setAccessible(true); int ptypeValue = (int) ptypeField.get(msrpcSamrConnect2); assertEquals(0, ptypeValue, "The 'ptype' field should be initialized to 0"); } @TestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.4K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/helper/CurlHelperTest.java
} private NodeManager getNodeManager(CurlHelper curlHelper) { try { Field field = CurlHelper.class.getDeclaredField("nodeManager"); field.setAccessible(true); return (NodeManager) field.get(curlHelper); } catch (Exception e) { return null; } }Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 10.4K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDescResponseTest.java
// Access private field to verify length was set Field lengthField = response.getClass().getSuperclass().getSuperclass().getSuperclass().getDeclaredField("length"); lengthField.setAccessible(true); int actualLength = (int) lengthField.get(response); assertEquals(expectedLength, actualLength); } @DisplayName("Test readParametersWireFormat with various lengths")Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 10.8K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/suggest/SuggesterRefactoringTest.java
// Use reflection to access private method final Method method = Suggester.class.getDeclaredMethod("getIndicesForAlias", String.class); method.setAccessible(true); final List<String> indices = (List<String>) method.invoke(suggester, aliasName); assertNotNull("Indices list should not be null", indices);Created: Fri Apr 17 09:08:13 GMT 2026 - Last Modified: Sun Feb 01 12:48:24 GMT 2026 - 13.1K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/sso/entraid/EntraIdAuthenticatorTest.java
Method method = EntraIdAuthenticator.class.getDeclaredMethod("processDirectMemberOf", EntraIdUser.class, List.class, List.class, List.class, String.class); method.setAccessible(true); try { method.invoke(authenticator, null, groupList, roleList, groupIdsForParentLookup, "http://invalid-url-for-test"); } catch (Exception e) {
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 19.3K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeResponseTest.java
// Use reflection to verify the outputBuffer is set correctly try { Field outputBufferField = TransTransactNamedPipeResponse.class.getDeclaredField("outputBuffer"); outputBufferField.setAccessible(true); byte[] actualBuffer = (byte[]) outputBufferField.get(response); assertSame(outputBuffer, actualBuffer); } catch (Exception e) {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.5K bytes - Click Count (0)