Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 667 for assertNotNull (0.05 sec)

  1. src/test/java/org/codelibs/fess/exception/StorageExceptionTest.java

            assertNotNull(exception);
            assertEquals(message, exception.getMessage());
            assertEquals(cause, exception.getCause());
        }
    
        public void test_constructorWithNullMessage() {
            // Test constructor with null message
            StorageException exception = new StorageException(null);
    
            assertNotNull(exception);
            assertNull(exception.getMessage());
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 7K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/exception/SsoLoginExceptionTest.java

            // Verify the exception chain
            Throwable cause1 = exception.getCause();
            assertNotNull(cause1);
            assertTrue(cause1 instanceof IOException);
            assertEquals("Level 1 error", cause1.getMessage());
    
            Throwable cause2 = cause1.getCause();
            assertNotNull(cause2);
            assertTrue(cause2 instanceof IllegalStateException);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  3. src/test/java/jcifs/netbios/NameServiceClientImplTest.java

            // Then
            assertNotNull(address, "Should return address for localhost");
        }
    
        @Test
        @DisplayName("Should handle IP address in getByName")
        void testGetByNameWithIPAddress() throws UnknownHostException {
            // When
            Address address = nameServiceClient.getByName("127.0.0.1");
    
            // Then
            assertNotNull(address, "Should return address for IP address");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 11K bytes
    - Viewed (0)
  4. src/test/java/jcifs/util/CryptoTest.java

            decryptCipher.init(Cipher.DECRYPT_MODE, new SecretKeySpec(key, "RC4"));
            byte[] decrypted = decryptCipher.doFinal(encrypted);
    
            // Then
            assertNotNull(encrypted);
            assertNotNull(decrypted);
            assertArrayEquals(plaintext, decrypted);
            assertNotEquals(new String(plaintext), new String(encrypted));
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbExceptionTest.java

        void testVariousNTStatusCodes(int ntStatus) {
            // When
            SmbException exception = new SmbException(ntStatus, false);
    
            // Then
            assertNotNull(exception);
            assertEquals(ntStatus, exception.getNtStatus());
            assertNotNull(exception.getMessage());
            assertFalse(exception.getMessage().isEmpty());
        }
    
        @Test
        @DisplayName("Should format error message for file not found")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/query/BoostQueryCommandTest.java

            BoostQuery boostQuery = new BoostQuery(termQuery, 2.5f);
    
            QueryContext context = new QueryContext("test", false);
            QueryBuilder result = queryProcessor.execute(context, boostQuery, 1.0f);
    
            assertNotNull(result);
            // The result could be either a TermQueryBuilder or DefaultQueryBuilder depending on field configuration
            assertTrue(result instanceof TermQueryBuilder || result instanceof DefaultQueryBuilder);
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 17K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/mylasta/action/FessMessagesTest.java

            assertNotNull(result);
            assertSame(messages, result);
            assertTrue(messages.hasMessageOf(property));
        }
    
        public void test_addErrorsFrontFooter() {
            String property = "testProperty";
            FessMessages result = messages.addErrorsFrontFooter(property);
            assertNotNull(result);
            assertSame(messages, result);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 28.2K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/util/SearchEngineUtilTest.java

            // Verify all public static methods exist
            try {
                assertNotNull(
                        SearchEngineUtil.class.getMethod("getXContentBuilderOutputStream", XContentBuilderCallback.class, MediaType.class));
                assertNotNull(SearchEngineUtil.class.getMethod("getXContentOutputStream", ToXContent.class, MediaType.class));
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 13.6K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/entity/QueryContextTest.java

            assertEquals("test", queryContext.getQueryString());
    
            // Verify that highlighting and field log are initialized
            assertNotNull(getMockRequest().getAttribute(Constants.HIGHLIGHT_QUERIES));
            assertNotNull(getMockRequest().getAttribute(Constants.FIELD_LOGS));
        }
    
        // Test constructor with isQuery true and no existing field logs
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 17.4K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/nego/EncryptionNegotiateContextTest.java

                assertNotNull(context);
                assertArrayEquals(ciphers, context.getCiphers());
            }
    
            @Test
            @DisplayName("Should create instance with null ciphers")
            void testConstructorWithNullCiphers() {
                EncryptionNegotiateContext context = new EncryptionNegotiateContext(mockConfig, null);
    
                assertNotNull(context);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
Back to top