Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 80 for getItems (0.04 sec)

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

            int read = resp.decode(packet, 0, false);
            assertTrue(read >= SMB2_HEADER_LENGTH + body.length, "Should decode at least header+body");
    
            // Validate simple getters
            assertEquals((byte) 0x7, resp.getOplockLevel());
            assertEquals((byte) 0x2, resp.getOpenFlags());
            assertEquals(0x11223344, resp.getCreateAction());
            assertEquals(1111L, resp.getCreationTime());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbResourceLocatorImplTest.java

            assertThrows(RuntimeCIFSException.class, a::getURLPath);
            assertThrows(RuntimeCIFSException.class, a::getUNCPath);
        }
    
        @Test
        @DisplayName("Server, port, URL passthrough getters")
        void testServerPortUrl() throws Exception {
            // No context mocks needed for this test
            SmbResourceLocatorImpl a = locator("smb://server:444/share");
            assertEquals("server", a.getServer());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbOperationException.java

        public SmbOperationException withContext(Map<String, Object> contextMap) {
            if (contextMap != null) {
                this.context.putAll(contextMap);
            }
            return this;
        }
    
        // Getters
        public ErrorCode getErrorCode() {
            return errorCode;
        }
    
        public ErrorCategory getErrorCategory() {
            return errorCode.getCategory();
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/pac/kerberos/KerberosEncDataTest.java

            assertEquals("Unsupported encryption type 99", exception.getMessage());
        }
    
        /**
         * Test getters with null values.
         *
         * @throws IOException if an I/O error occurs
         * @throws PACDecodingException if a PAC decoding error occurs
         */
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/ioctl/SrvPipePeekResponseTest.java

            assertArrayEquals(testData, response.getData());
            // The decode method returns only the header size (16 bytes)\n        assertEquals(16, bytesDecoded);
        }
    
        @Test
        @DisplayName("Test getters return initial null/zero values")
        void testInitialGetterValues() {
            // Create fresh instance
            SrvPipePeekResponse freshResponse = new SrvPipePeekResponse();
    
            // Verify initial state
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtTransactionTest.java

                this.parametersWireFormatReturn = value;
            }
    
            public void setDataWireFormatReturn(int value) {
                this.dataWireFormatReturn = value;
            }
    
            // Getters for protected fields for testing
            public int getMaxSetupCount() {
                return maxSetupCount;
            }
    
            public void setMaxSetupCount(byte value) {
                this.maxSetupCount = value;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/create/Smb2CreateRequestTest.java

            request.setPath("newpath\\newfile.txt");
            assertEquals("\\newpath\\newfile.txt", request.getPath());
        }
    
        @Test
        @DisplayName("Test setFullUNCPath and related getters")
        void testFullUNCPath() {
            request = new Smb2CreateRequest(mockConfig, "test\\file.txt");
    
            assertNull(request.getFullUNCPath());
            assertNull(request.getServer());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/pac/kerberos/KerberosTicketTest.java

                assertEquals(SERVER_REALM, ticket.getServerRealm());
                assertEquals(SERVER_PRINCIPAL_NAME, ticket.getServerPrincipalName());
                assertNotNull(ticket.getEncData());
    
                // Also test getters that delegate to KerberosEncData
                assertEquals(USER_PRINCIPAL_NAME, ticket.getUserPrincipalName());
                assertEquals(USER_REALM, ticket.getUserRealm());
            }
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/suggest/settings/SuggestSettingsBuilderTest.java

            assertNotNull(settings);
            // Verify that the settings object was created with the correct parameters
            // Note: We can't directly verify internal state of SuggestSettings without getters,
            // but we can verify it was created successfully
        }
    
        @Test
        public void testBuildWithCustomSettings() {
            // Test building with all custom settings
            String id = "custom-id";
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Mon Sep 01 13:33:03 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/DirFileEntryEnumIteratorBaseTest.java

        SmbResource parent;
        @Mock
        ResourceNameFilter nameFilter;
    
        private void stubAcquireReturnsSelf() {
            when(tree.acquire()).thenReturn(tree);
        }
    
        @Test
        @DisplayName("Getters return constructor values and acquire is called")
        void gettersAndAcquire() throws Exception {
            // Arrange
            stubAcquireReturnsSelf();
            String wildcard = "*.*";
            int attrs = 123;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.5K bytes
    - Viewed (0)
Back to top