- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 111 for Setuid (0.14 sec)
-
src/main/java/jcifs/internal/smb2/tree/Smb2TreeConnectResponse.java
*/ public int getMaximalAccess() { return this.maximalAccess; } /** * {@inheritDoc} * * @see jcifs.internal.TreeConnectResponse#getTid() */ @Override public final int getTid() { return getTreeId(); } @Override public boolean isValidTid() { return getTreeId() != -1; } /** * {@inheritDoc}
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 7.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtTransactionResponseTest.java
// Test at various positions in the buffer int[] positions = { 0, 10, 50, 100, 150 }; for (int pos : positions) { when(mockConfig.getPid()).thenReturn(1234); // Mock getPid for each new instance response = new TestSmbComNtTransactionResponse(mockConfig); // Reset response // Fill buffer at position for (int i = 0; i < 37; i++) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 16.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/SIDTest.java
} @Test @DisplayName("getRid throws for domain SIDs") void testGetRidForDomainThrows() { byte[] ident = new byte[] { 0, 0, 0, 0, 0, 5 }; SID domain = new SID(buildSidT((byte) 1, ident, 10, 20), jcifs.SID.SID_TYPE_DOMAIN, "DOM", null, false); IllegalArgumentException ex = assertThrows(IllegalArgumentException.class, domain::getRid);
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/smb1/trans2/Trans2FindFirst2ResponseTest.java
// Should return dataCount assertEquals(5, result); } @Test void testGetSid() { // Test the getSid method // By default, it should be 0 assertEquals(0, response.getSid()); } @Test void testGetResumeKey() { // Test the getResumeKey method // By default, it should be 0
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.4K bytes - Viewed (0) -
src/test/java/jcifs/util/transport/ResponseTest.java
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); assertEquals(mid, mockResponse.getMid()); // Verify the method was called
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/SmbComTransactionResponseTest.java
} @Test @DisplayName("Test configuration usage") void testConfigurationUsage() { // Verify configuration is used - getPid() is called in parent constructor verify(mockConfig, atLeastOnce()).getPid(); } @Test @DisplayName("Test transaction response with different commands") void testTransactionResponseWithDifferentCommands() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2CancelRequestTest.java
} @Test @DisplayName("Test setTid sets tree ID") void testSetTid() { // Given Smb2CancelRequest request = new Smb2CancelRequest(mockConfig, 1L, 0L); int treeId = 42; // When request.setTid(treeId); // Then assertEquals(treeId, request.getTreeId(), "Tree ID should be set correctly");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.8K bytes - Viewed (0) -
src/test/java/jcifs/tests/persistent/HandleGuidTest.java
UUID uuid = UUID.randomUUID(); HandleGuid guid1 = new HandleGuid(uuid); HandleGuid guid2 = new HandleGuid(guid1.toBytes()); assertEquals(guid1, guid2); assertEquals(uuid, guid1.getUuid()); } @Test public void testHandleGuidInvalidBytes() { assertThrows(IllegalArgumentException.class, () -> { new HandleGuid(new byte[8]); // Wrong length });
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 2.4K bytes - Viewed (0) -
src/main/java/jcifs/smb/DirFileEntryEnumIterator1.java
th.getConfig().getListSize() - FIND_OVERHEAD), this.response); this.nextRequest = new Trans2FindNext2(th.getConfig(), this.response.getSid(), this.response.getResumeKey(), this.response.getLastName(), th.getConfig().getListCount(), th.getConfig().getListSize() - FIND_OVERHEAD); } catch (final SmbException e) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 5.1K bytes - Viewed (0) -
src/test/java/jcifs/SIDTest.java
rpcSid.sub_authority = new int[] { 21, 123, 456, 789, 1000 }; SID userSid = new SID(rpcSid, SID.SID_TYPE_USER, "MYDOMAIN", "user", false); assertEquals(1000, userSid.getRid()); } /** * Test getting the RID from a domain SID. * * @throws SmbException if the SID string is invalid */ @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.5K bytes - Viewed (0)