Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for testGetters (0.04 sec)

  1. src/test/java/jcifs/smb1/smb1/NtlmContextTest.java

            });
            // Exception is thrown, but cause may or may not be set depending on implementation
            assertNotNull(e.getMessage()); // Should have an error message
        }
    
        @Test
        void testGetters() {
            // Simple test for getter methods
            NtlmContext context = new NtlmContext(mockAuth, true);
            assertFalse(context.isEstablished());
            assertNull(context.getServerChallenge());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/pac/PacLogonInfoTest.java

            assertEquals("Malformed PAC", exception.getMessage());
        }
    
        @Test
        @DisplayName("Test getters return expected values using mocks")
        void testGetters() throws Exception {
            // Use mocking to test getters without complex PAC data creation
            PacLogonInfo logonInfo = mock(PacLogonInfo.class);
    
            // Setup mock responses
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/dcerpc/DcerpcHandleTest.java

            }
        }
    
        @Nested
        @DisplayName("Getter Tests")
        class GetterTests {
    
            @Test
            @DisplayName("Should return correct values from getters")
            void testGetters() throws CIFSException {
                // When/Then: All getters should return expected values
                assertEquals(mockBinding, handle.getBinding());
                assertTrue(handle.getMaxRecv() > 0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/dfs/ReferralTest.java

            assertEquals(expectedPath, referral.getRpath());
            assertNull(referral.getAltPath());
            assertNull(referral.getNode());
        }
    
        // Getter Tests
    
        @Test
        public void testGetters() {
            // Setup a complete referral
            ByteBuffer bb = ByteBuffer.wrap(testBuffer).order(ByteOrder.LITTLE_ENDIAN);
    
            bb.putShort((short) 3);
            bb.putShort((short) 100);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 22K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/core/beans/impl/BeanDescImplTest.java

            assertThat(pcd.getArguments().length, is(1));
            assertThat(pcd.getArguments()[0].getRawClass(), is(sameClass(String.class)));
        }
    
        /**
         * @throws Exception
         */
        public void testGetter() throws Exception {
            final BeanDesc bd = BeanDescFactory.getBeanDesc(Hoge.class);
            PropertyDesc pd = bd.getPropertyDesc("bar");
            assertThat(pd.isParameterized(), is(true));
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Fri Jun 20 13:40:57 UTC 2025
    - 13.9K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/helper/UserInfoHelperTest.java

            MockletHttpServletRequest request = getMockRequest();
    
            String[] docIds = userInfoHelper.getResultDocIds("nonExistentQuery");
            assertEquals(0, docIds.length);
        }
    
        public void test_setters() {
            UserInfoHelper userInfoHelper = new UserInfoHelper();
    
            userInfoHelper.setResultDocIdsCacheSize(50);
            userInfoHelper.setCookieName("testCookie");
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 10 13:41:04 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/helper/RoleQueryHelperTest.java

            String value = "invalid_encrypted_value";
    
            roleQueryHelper.parseRoleSet(value, true, roleSet);
    
            assertEquals(0, roleSet.size());
        }
    
        public void test_setters() {
            final RoleQueryHelper roleQueryHelper = new RoleQueryHelper();
    
            CachedCipher testCipher = new CachedCipher();
            roleQueryHelper.setCipher(testCipher);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 28.5K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/util/PrunedTagTest.java

            // Hash code should be consistent
            int hash1 = tag1.hashCode();
            int hash2 = tag1.hashCode();
            assertEquals(hash1, hash2);
        }
    
        public void test_setters() {
            PrunedTag tag = new PrunedTag("div");
    
            // Test setId
            tag.setId("unique-id");
            assertTrue(tag.toString().contains("id=unique-id"));
    
            // Test setCss
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 21K bytes
    - Viewed (0)
Back to top