- Sort Score
- Num 10 results
- Language All
Results 81 - 90 of 167 for setAccessible (0.08 seconds)
-
src/test/java/org/codelibs/fess/app/web/admin/design/AdminDesignActionTest.java
method.setAccessible(true); return (Boolean) method.invoke(action, file, baseDir); } private Boolean invokeIsValidVirtualHostPath(String path) throws Exception { Method method = AdminDesignAction.class.getDeclaredMethod("isValidVirtualHostPath", String.class); method.setAccessible(true); return (Boolean) method.invoke(action, path); }Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 13.6K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/SmbComTransactionResponseTest.java
} } if (field == null) { throw new NoSuchFieldException(fieldName); } field.setAccessible(true); field.set(this, value); } catch (Exception e) { throw new RuntimeException("Failed to set field " + fieldName, e); } }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/ServerMessageBlock2ResponseTest.java
// Workaround: Use reflection to set private status field try { java.lang.reflect.Field statusField = ServerMessageBlock2.class.getDeclaredField("status"); statusField.setAccessible(true); statusField.set(this, status); } catch (Exception e) { throw new RuntimeException(e); } } public void setFlagsForTest(int flags) {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 19.3K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/Smb2EchoResponseTest.java
statusField.setAccessible(true); statusField.setInt(smb, status); } private void setAsync(ServerMessageBlock2 smb, boolean async) throws Exception { Field asyncField = ServerMessageBlock2.class.getDeclaredField("async"); asyncField.setAccessible(true); asyncField.setBoolean(smb, async); }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.1K bytes - Click Count (0) -
src/test/java/jcifs/smb1/https/HandlerTest.java
// When Method method = Handler.class.getDeclaredMethod("getDefaultPort"); // Then assertTrue(Modifier.isProtected(method.getModifiers())); method.setAccessible(true); assertEquals(443, method.invoke(testHandler)); } @Test @DisplayName("Should maintain inheritance hierarchy") void testInheritanceHierarchy() {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 6.2K bytes - Click Count (0) -
src/test/java/jcifs/ntlmssp/Type2MessageTest.java
// When/Then try { java.lang.reflect.Method method = Type2Message.class.getDeclaredMethod("makeTargetInfo", CIFSContext.class, String.class); method.setAccessible(true); byte[] targetInfo = (byte[]) method.invoke(null, mockContext, TEST_DOMAIN); assertNotNull(targetInfo);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 38.9K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/Trans2QueryFSInformationTest.java
// ensure information level is stored using reflection Field informationLevelField = Trans2QueryFSInformation.class.getDeclaredField("informationLevel"); informationLevelField.setAccessible(true); assertEquals(level, informationLevelField.getInt(cmd), "informationLevel should be persisted"); } @Test @DisplayName("writeSetupWireFormat writes the subCommand and a trailing 0")Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4.5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureCancellationCauseTest.java
Method tryInternalFastPathGetFailureMethod = abstractFutureClass.getDeclaredMethod("tryInternalFastPathGetFailure"); tryInternalFastPathGetFailureMethod.setAccessible(true); return (Throwable) tryInternalFastPathGetFailureMethod.invoke(future); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 6.3K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/AbstractFutureCancellationCauseTest.java
Method tryInternalFastPathGetFailureMethod = abstractFutureClass.getDeclaredMethod("tryInternalFastPathGetFailure"); tryInternalFastPathGetFailureMethod.setAccessible(true); return (Throwable) tryInternalFastPathGetFailureMethod.invoke(future); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 6.3K bytes - Click Count (0) -
src/test/java/jcifs/internal/TreeConnectResponseTest.java
field.setAccessible(true); field.set(obj, value); } /** * Helper method to get private field value using reflection */ private Object getPrivateField(Object obj, String fieldName) throws Exception { Field field = obj.getClass().getDeclaredField(fieldName); field.setAccessible(true); return field.get(obj); } /**Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 24.9K bytes - Click Count (0)