Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 170 of 266 for defined (0.05 sec)

  1. src/test/java/jcifs/internal/smb2/create/Smb2CreateRequestTest.java

        }
    
        @Test
        @DisplayName("Test desired access setter")
        void testSetDesiredAccess() {
            request = new Smb2CreateRequest(mockConfig, "test.txt");
    
            int access = 0x12345678;
            request.setDesiredAccess(access);
    
            byte[] buffer = new byte[1024];
            request.writeBytesWireFormat(buffer, 0);
    
            // Read desired access from buffer (offset 24-27 after 8 bytes reserved)
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  2. src/main/java/jcifs/dcerpc/msrpc/SamrAliasHandle.java

        /**
         * Creates a new SAM alias handle.
         *
         * @param handle the DCE/RPC handle for communication
         * @param domainHandle the domain handle containing this alias
         * @param access the desired access rights
         * @param rid the relative identifier of the alias
         * @throws IOException if an I/O error occurs during handle creation
         */
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  3. src/main/java/jcifs/dcerpc/msrpc/MsrpcSamrOpenAlias.java

     */
    public class MsrpcSamrOpenAlias extends samr.SamrOpenAlias {
    
        /**
         * Creates a new request to open an alias handle.
         *
         * @param handle the domain handle
         * @param access the desired access rights
         * @param rid the relative identifier of the alias
         * @param aliasHandle the alias handle to be populated
         */
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbCopyUtilTest.java

            // Arrange
            SmbFile dest = mock(SmbFile.class);
            SmbFileHandleImpl handle = mock(SmbFileHandleImpl.class);
            SmbAuthException authEx = new SmbAuthException("denied");
    
            when(dest.openUnshared(anyInt(), anyInt(), anyInt(), anyInt(), anyInt())).thenThrow(authEx) // first attempt fails with auth
                    .thenReturn(handle); // second attempt succeeds
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/dcerpc/msrpc/MsrpcLsarOpenPolicy2.java

    public class MsrpcLsarOpenPolicy2 extends lsarpc.LsarOpenPolicy2 {
    
        /**
         * Creates a new request to open an LSA policy handle.
         *
         * @param server the server name to connect to
         * @param access the desired access rights
         * @param policyHandle the policy handle to be populated
         */
        public MsrpcLsarOpenPolicy2(final String server, final int access, final LsaPolicyHandle policyHandle) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2K bytes
    - Viewed (0)
  6. src/main/java/jcifs/dcerpc/ndr/NdrBuffer.java

            this.start = this.index = start;
            this.length = 0;
            this.deferred = this;
        }
    
        /**
         * Creates a derived NdrBuffer at the specified index position.
         *
         * @param idx the index position for the derived buffer
         * @return the derived NdrBuffer
         */
        public NdrBuffer derive(final int idx) {
            final NdrBuffer nb = new NdrBuffer(this.buf, this.start);
            nb.index = idx;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  7. src/test/java/jcifs/CIFSContextTest.java

     */
    @DisplayName("CIFSContext Tests")
    class CIFSContextTest extends BaseTest {
    
        @Mock
        private CIFSContext mockContext;
    
        @Test
        @DisplayName("Should define interface methods")
        void testCIFSContextInterface() {
            // Verify interface methods exist
            assertDoesNotThrow(() -> {
                mockContext.get("smb://server/share");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  8. src/test/java/jcifs/NetbiosNameTest.java

     */
    @DisplayName("NetbiosName Tests")
    class NetbiosNameTest extends BaseTest {
    
        @Mock
        private NetbiosName mockNetbiosName;
    
        @Test
        @DisplayName("Should define interface methods")
        void testNetbiosNameInterface() {
            // Verify interface methods exist
            try {
                assertNotNull(NetbiosName.class.getMethod("getName"));
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/pac/PacCredentialTypeTest.java

        void testIsCredentialTypeCorrectWithNullData() {
            // The constructor check `if (!isCredentialTypeCorrect())` handles the null case.
            // We verify that the constructor throws an exception, which indirectly tests the desired logic.
            assertThrows(PACDecodingException.class, () -> new PacCredentialType(null));
        }
    
        /**
         * Tests the isCredentialTypeCorrect method with a byte array of exact minimal buffer size.
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/SmbConstantsTest.java

    import jcifs.SmbConstants;
    
    /**
     * Basic unit tests for {@link SmbConstants}.  The interface only
     * provides {@code static final} constants, so the test suite focuses on
     * value correctness, bit‑mask logic, and some derived properties.
     *
     * <p>Mockito is exercised in a dummy scenario to satisfy the
     * request for an interaction test.  The mock represents a
     * {@code SmbTransport} collaborator and is used only for
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.2K bytes
    - Viewed (0)
Back to top