- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 118 for getDeclaredField (0.73 sec)
-
src/test/java/jcifs/smb1/smb1/Trans2QueryFSInformationTest.java
assertEquals(0, cmd.maxSetupCount, "maxSetupCount should be 0"); // 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
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2EchoResponseTest.java
Field statusField = ServerMessageBlock2.class.getDeclaredField("status"); 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);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/SMBSignatureValidationExceptionTest.java
@Test @DisplayName("serialVersionUID matches declared constant") void serialVersionUID_hasExpectedValue() throws Exception { // Arrange Field f = SMBSignatureValidationException.class.getDeclaredField("serialVersionUID"); f.setAccessible(true); // Act long value = (long) f.get(null); // Assert
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeResponseTest.java
assertNotNull(response); // 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);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/net/NetShareEnumTest.java
verify(mockConfig).getTransactionBufferSize(); } @Test @DisplayName("Test DESCR constant value") void testDescrConstant() throws Exception { Field descrField = NetShareEnum.class.getDeclaredField("DESCR"); descrField.setAccessible(true); String descr = (String) descrField.get(null); assertEquals("WrLeh\u0000B13BWz\u0000", descr); // Verify ASCII conversion
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ServerMessageBlock2ResponseTest.java
public void setStatusForTest(int status) { // 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); } }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/net/NetServerEnum2Test.java
} } @Test @DisplayName("Test DESCR array contents") void testDescrArray() throws Exception { Field descrField = NetServerEnum2.class.getDeclaredField("DESCR"); descrField.setAccessible(true); String[] descr = (String[]) descrField.get(null); assertNotNull(descr); assertEquals(2, descr.length);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.7K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/AggregateFutureState.java
try { helper = new SafeAtomicHelper(); } catch (Throwable reflectionFailure) { // sneaky checked exception // Some Android 5.0.x Samsung devices have bugs in JDK reflection APIs that cause // getDeclaredField to throw a NoSuchFieldException when the field is definitely there. // For these users fallback to a suboptimal implementation, based on synchronized. This will // be a definite performance hit to those users.
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 8.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyResponseTest.java
Field field = ServerMessageBlock2.class.getDeclaredField("headerStart"); field.setAccessible(true); field.setInt(response, headerStart); } /** * Helper method to set status using reflection */ private void setStatus(Smb2ChangeNotifyResponse response, int status) throws Exception { Field statusField = ServerMessageBlock2.class.getDeclaredField("status");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 18.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeConnectionTest.java
} // Helper to set private field 'tree' private static void setTree(SmbTreeConnection c, SmbTreeImpl tree) { try { Field f = SmbTreeConnection.class.getDeclaredField("tree"); f.setAccessible(true); f.set(c, tree); } catch (Exception e) { throw new AssertionError(e); } }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 13K bytes - Viewed (0)