Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 83 for acct (0.02 sec)

  1. src/test/java/jcifs/smb/SIDCacheImplTest.java

            try {
                return new SID(textual);
            } catch (SmbException e) {
                throw new RuntimeException(e);
            }
        }
    
        @Test
        @DisplayName("resolveSids(DcerpcHandle,...) populates acct, domain and type for known types")
        void resolveSids_populatesFields_happyPath() throws Exception {
            SIDCacheImpl cache = new SIDCacheImpl(mock(CIFSContext.class));
            DcerpcHandle handle = mock(DcerpcHandle.class);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SIDTest.java

            void testGetTypeAndText(int type, String text) {
                byte[] ident = new byte[] { 0, 0, 0, 0, 0, 5 };
                SID sid = new SID(buildSidT((byte) 1, ident, 42), type, "DOM", "acct", false);
                assertEquals(type, sid.getType());
                assertEquals(text, sid.getTypeText());
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/NameServiceClientTest.java

        @Test
        void testGetLocalHost() {
            // Arrange
            NetbiosAddress expectedAddress = mock(NetbiosAddress.class);
            when(nameServiceClient.getLocalHost()).thenReturn(expectedAddress);
    
            // Act
            NetbiosAddress actualAddress = nameServiceClient.getLocalHost();
    
            // Assert
            assertNotNull(actualAddress);
            assertEquals(expectedAddress, actualAddress);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbCopyUtilTest.java

            SmbFileHandleImpl handle = mock(SmbFileHandleImpl.class);
            when(dest.openUnshared(anyInt(), anyInt(), anyInt(), anyInt(), anyInt())).thenReturn(handle);
    
            int attrs = SmbConstants.ATTR_NORMAL;
    
            // Act
            SmbFileHandleImpl result = SmbCopyUtil.openCopyTargetFile(dest, attrs, alsoRead);
    
            // Assert
            assertSame(handle, result, "Should return handle from dest.openUnshared");
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/trans/TransWaitNamedPipeResponseTest.java

            int dstIndex = 50;
    
            // Act
            int result = response.writeSetupWireFormat(dst, dstIndex);
    
            // Assert
            assertEquals(0, result);
        }
    
        @Test
        @DisplayName("writeParametersWireFormat should return 0")
        void testWriteParametersWireFormat() {
            // Arrange
            byte[] dst = new byte[100];
            int dstIndex = 0;
    
            // Act
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/CredentialsInternalTest.java

            boolean guest = flags[1];
    
            // Arrange
            Subject subject = new Subject();
            TestCredentials creds = new TestCredentials("DOMAIN", anonymous, guest, subject, false);
    
            // Act & Assert
            // unwrap to interface itself should return same instance
            CredentialsInternal unwrapped = creds.unwrap(CredentialsInternal.class);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/netbios/NodeStatusRequestTest.java

            // Act & Assert
            assertEquals(0, nodeStatusRequest.readRDataWireFormat(src, 0));
            assertEquals(0, nodeStatusRequest.readRDataWireFormat(src, 50));
            assertEquals(0, nodeStatusRequest.readRDataWireFormat(src, 99));
        }
    
        @Test
        void toString_shouldReturnFormattedString() {
            // Arrange
            nodeStatusRequest = new NodeStatusRequest(mockConfig, mockName);
    
            // Act
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.9K bytes
    - Viewed (0)
  8. src/test/java/jcifs/dcerpc/msrpc/MsrpcLookupSidsTest.java

            testSids = new jcifs.SID[] { mockSid };
    
            // Act & Assert - Constructor accepts null, no exception thrown
            assertDoesNotThrow(() -> {
                new MsrpcLookupSids(null, testSids);
            });
        }
    
        @Test
        void constructor_shouldThrowExceptionWithNullSids() {
            // Act & Assert - Null SID array causes NPE when accessing length
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb1/trans/TransPeekNamedPipeTest.java

        @BeforeEach
        void setUp() {
            MockitoAnnotations.openMocks(this);
        }
    
        @Test
        @DisplayName("Constructor should initialize with correct values")
        void testConstructor() {
            // Act
            transPeekNamedPipe = new TransPeekNamedPipe(mockConfig, TEST_PIPE_NAME, TEST_FID);
    
            // Assert
            assertNotNull(transPeekNamedPipe);
            assertEquals(TEST_PIPE_NAME, transPeekNamedPipe.name);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/FileEntryTest.java

            // Act
            long actual = getter.apply(e);
            // Assert
            assertEquals(value, actual, label);
        }
    
        @Test
        @DisplayName("Calling a method on null reference throws NPE")
        void nullReference_throwsNPE() {
            // Arrange
            FileEntry e = null;
            // Act & Assert: demonstrate invalid usage results in NPE
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10K bytes
    - Viewed (0)
Back to top