- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 118 for getDeclaredField (1.23 sec)
-
src/test/java/jcifs/dcerpc/msrpc/MsrpcShareEnumTest.java
Field remarkField = SmbShareInfo.class.getDeclaredField("remark"); remarkField.setAccessible(true); assertEquals("Test remark", remarkField.get(msrpcShareInfo1)); } @Test void testLevelParameter() throws Exception { // Verify that level is set to 1 as per the constructor Field levelField = srvsvc.ShareEnumAll.class.getDeclaredField("level"); levelField.setAccessible(true);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2ReadResponseTest.java
} System.arraycopy(testData, 0, buffer, dataOffsetFromHeader, dataLength); // Use reflection to set headerStart Field headerStartField = ServerMessageBlock2.class.getDeclaredField("headerStart"); headerStartField.setAccessible(true); headerStartField.set(response, headerStart); // When int bytesRead = response.readBytesWireFormat(buffer, bodyStart);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 22.1K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/InfoTest.java
}; java.lang.reflect.Field fileAttr = SmbComQueryInformationResponse.class.getDeclaredField("fileAttributes"); fileAttr.setAccessible(true); fileAttr.setInt(resp, 0xABCD); java.lang.reflect.Field lastWrite = SmbComQueryInformationResponse.class.getDeclaredField("lastWriteTime"); lastWrite.setAccessible(true); lastWrite.setLong(resp, 1630000000000L);
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/info/Smb2SetInfoRequestTest.java
try { Field infoTypeField = Smb2SetInfoRequest.class.getDeclaredField("infoType"); infoTypeField.setAccessible(true); byte actualInfoType = (byte) infoTypeField.get(request); assertEquals(Smb2Constants.SMB2_0_INFO_FILE, actualInfoType); Field fileInfoClassField = Smb2SetInfoRequest.class.getDeclaredField("fileInfoClass"); fileInfoClassField.setAccessible(true);
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/jcifs/smb1/smb1/Trans2QueryPathInformationResponseTest.java
Field infoLevel = Trans2QueryPathInformationResponse.class.getDeclaredField("informationLevel"); infoLevel.setAccessible(true); assertEquals(Trans2QueryPathInformationResponse.SMB_QUERY_FILE_BASIC_INFO, infoLevel.getInt(resp)); // Verify subCommand is set correctly Field subCmd = SmbComTransactionResponse.class.getDeclaredField("subCommand"); subCmd.setAccessible(true);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/MsrpcLookupSidsTest.java
// Assert using reflection to verify superclass fields Field handleField = lsarpc.LsarLookupSids.class.getDeclaredField("handle"); handleField.setAccessible(true); assertSame(mockPolicyHandle, handleField.get(lookupSids)); Field countField = lsarpc.LsarLookupSids.class.getDeclaredField("count"); countField.setAccessible(true); assertEquals(2, countField.get(lookupSids));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.6K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/validation/UriTypeTest.java
public void test_annotationHashCodeAndEquals() throws Exception { final Field field1 = UriTypeTest.class.getDeclaredField("testFieldWeb"); final UriType annotation1 = field1.getAnnotation(UriType.class); final Field field2 = UriTypeTest.class.getDeclaredField("testFieldFile"); final UriType annotation2 = field2.getAnnotation(UriType.class);
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 21K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/validation/CustomSizeTest.java
} // Test default values public void test_defaultValues() throws Exception { final Field field = CustomSizeTest.class.getDeclaredField("testField"); final CustomSize annotation = field.getAnnotation(CustomSize.class); assertNotNull("Annotation should be present on field", annotation);
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 17.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTransportPoolImplTest.java
Field negotiatedField = SmbTransportImpl.class.getDeclaredField("negotiated"); negotiatedField.setAccessible(true); negotiatedField.set(first, negotiationResponse); // Simulate session already in use by adding a session Field sessionsField = SmbTransportImpl.class.getDeclaredField("sessions"); sessionsField.setAccessible(true);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 19.2K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/MsrpcGetMembersInAliasTest.java
Field ptypeField = DcerpcMessage.class.getDeclaredField("ptype"); ptypeField.setAccessible(true); int ptypeValue = (int) ptypeField.get(request); assertEquals(0, ptypeValue, "The 'ptype' field should be initialized to 0."); Field flagsField = DcerpcMessage.class.getDeclaredField("flags"); flagsField.setAccessible(true);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.1K bytes - Viewed (0)