- Sort Score
- Num 10 results
- Language All
Results 1 - 9 of 9 for testSetFid (0.05 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
src/test/java/jcifs/smb1/smb1/SmbComOpenAndXResponseTest.java
assertEquals(0, response.fileType); assertEquals(0, response.deviceState); assertEquals(0, response.action); assertEquals(0, response.serverFid); } @Test void testSetFid() { response.fid = 123; assertEquals(123, response.fid); } @Test void testSetFileAttributes() { response.fileAttributes = 0x20; // ATTR_ARCHIVE
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4.2K bytes - Click Count (0) -
src/test/java/jcifs/util/transport/ResponseTest.java
verify(mockResponse, times(1)).getErrorCode(); } @Test void testSetMid() { long mid = 12345L; mockResponse.setMid(mid); // Verify that the method was called with the correct argument verify(mockResponse, times(1)).setMid(mid); } @Test void testGetMid() { long mid = 54321L; when(mockResponse.getMid()).thenReturn(mid);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 6.5K bytes - Click Count (0) -
src/test/java/jcifs/pac/PacSidAttributesTest.java
} /** * Test method for {@link jcifs.pac.PacSidAttributes#getId()}. */ @Test void testGetId() { // Test the getId method assertEquals(sidMock, pacSidAttributes.getId(), "getId should return the correct SID."); } /**Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 1.6K bytes - Click Count (0) -
src/test/java/jcifs/internal/TreeConnectResponseTest.java
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) -
src/test/java/jcifs/internal/smb2/ServerMessageBlock2RequestTest.java
testRequest.setRequestCredits(credits); assertEquals(credits, testRequest.getCredit()); } @Test @DisplayName("setTid should set tree ID") void testSetTid() { int tid = 12345; testRequest.setTid(tid); assertEquals(tid, testRequest.getTreeId()); } } @Nested @DisplayName("Async Operation Tests")
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.7K bytes - Click Count (0) -
src/test/java/jcifs/SIDTest.java
assertEquals(SID.SID_TYPE_DOMAIN, domainSid.getType()); } /** * Test getting the RID. * * @throws SmbException if the SID string is invalid */ @Test void testGetRid() throws SmbException { // Create a mock RPC SID to simulate a user SID rpc.sid_t rpcSid = new rpc.sid_t(); rpcSid.revision = 1;
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 13.5K bytes - Click Count (0) -
src/test/java/jcifs/internal/dtyp/ACETest.java
ace.access = 0x001200A9; assertEquals(0x001200A9, ace.getAccessMask()); } @Test @DisplayName("Test getSID returns correct SID") void testGetSID() throws SmbException { assertNull(ace.getSID()); SID testSid = new SID("S-1-5-21-1234567890-123456789-123456789-1000"); ace.sid = testSid; assertSame(testSid, ace.getSID());Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 13.6K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectResponseTest.java
response.readBytesWireFormat(buffer, 0); assertFalse(response.isShareDfs()); } @Test @DisplayName("Should return correct TID from TreeConnectResponse interface") void testGetTid() throws Exception { // Given - set tree ID using reflection Method setTreeIdMethod = ServerMessageBlock2.class.getDeclaredMethod("setTreeId", int.class); setTreeIdMethod.setAccessible(true);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 19.3K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/ServerMessageBlock2Test.java
testMessage.setExtendedSecurity(false); // Method is empty, just ensure no exception } @Test @DisplayName("Should ignore UID setting") void testSetUid() { testMessage.setUid(123); // Method is empty, just ensure no exception } } @Nested @DisplayName("Equals and HashCode Tests")
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 39.5K bytes - Click Count (0)