Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 481 - 490 of 491 for assertNull (0.17 seconds)

  1. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/ModelUpgradeStrategyTest.java

    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.junit.jupiter.api.Assertions.assertFalse;
    import static org.junit.jupiter.api.Assertions.assertNotNull;
    import static org.junit.jupiter.api.Assertions.assertNull;
    import static org.junit.jupiter.api.Assertions.assertTrue;
    import static org.mockito.Mockito.mock;
    import static org.mockito.Mockito.when;
    
    /**
     * Unit tests for the {@link ModelUpgradeStrategy} class.
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Nov 18 18:03:26 GMT 2025
    - 38.8K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/cors/CorsHandlerTest.java

            HttpServletResponse response = createMockResponse();
    
            corsHandler.process(null, request, response);
    
            assertTrue("process should be called", processCalled);
            assertNull(processOrigin, "origin should be null");
            assertEquals(request, processRequest);
            assertEquals(response, processResponse);
        }
    
        // Test process method with empty origin
        @Test
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 21 06:04:58 GMT 2026
    - 26.3K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/job/SuggestJobTest.java

            assertEquals(Constants.EXECUTE_TYPE_SUGGEST, suggestJob.getExecuteType());
        }
    
        // Test session ID generation
        @Test
        public void test_sessionIdGeneration() {
            assertNull(suggestJob.sessionId);
    
            mockProcessHelper.setExitValue(0);
            suggestJob.execute();
    
            assertNotNull(suggestJob.sessionId);
            assertEquals(15, suggestJob.sessionId.length());
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 31.6K bytes
    - Click Count (0)
  4. src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java

    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.junit.jupiter.api.Assertions.assertFalse;
    import static org.junit.jupiter.api.Assertions.assertNotNull;
    import static org.junit.jupiter.api.Assertions.assertNull;
    import static org.junit.jupiter.api.Assertions.assertThrows;
    import static org.junit.jupiter.api.Assertions.assertTrue;
    
    import java.nio.ByteBuffer;
    import java.security.SecureRandom;
    import java.util.ArrayList;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 44.1K bytes
    - Click Count (0)
  5. src/test/java/jcifs/internal/smb1/com/ServerDataTest.java

            assertEquals(0L, serverData.serverTime);
            assertEquals(0, serverData.serverTimeZone);
            assertEquals(0, serverData.encryptionKeyLength);
            assertNull(serverData.encryptionKey);
            assertNull(serverData.guid);
        }
    
        /**
         * Test setting and getting byte field (sflags)
         */
        @ParameterizedTest
        @ValueSource(bytes = { 0x00, 0x01, 0x7F, (byte) 0x80, (byte) 0xFF })
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 17K bytes
    - Click Count (0)
  6. src/test/java/jcifs/internal/smb2/nego/PreauthIntegrityNegotiateContextTest.java

                assertNull(context.getSalt());
            }
    
            @Test
            @DisplayName("Should create instance with both null parameters")
            void testConstructorWithNullParameters() {
                PreauthIntegrityNegotiateContext context = new PreauthIntegrityNegotiateContext(mockConfig, null, null);
    
                assertNotNull(context);
                assertNull(context.getHashAlgos());
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 34K bytes
    - Click Count (0)
  7. android/guava-testlib/src/com/google/common/escape/testing/EscaperAsserts.java

        Assert.assertNull(computeReplacement(escaper, c));
      }
    
      /**
       * Asserts that a Unicode escaper does not escape the given character.
       *
       * @param escaper the non-null escaper to test
       * @param cp the Unicode code point to test
       */
      public static void assertUnescaped(UnicodeEscaper escaper, int cp) {
        Assert.assertNull(computeReplacement(escaper, cp));
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Jan 18 20:55:09 GMT 2022
    - 3.8K bytes
    - Click Count (0)
  8. guava-testlib/src/com/google/common/escape/testing/EscaperAsserts.java

        Assert.assertNull(computeReplacement(escaper, c));
      }
    
      /**
       * Asserts that a Unicode escaper does not escape the given character.
       *
       * @param escaper the non-null escaper to test
       * @param cp the Unicode code point to test
       */
      public static void assertUnescaped(UnicodeEscaper escaper, int cp) {
        Assert.assertNull(computeReplacement(escaper, cp));
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Jan 18 20:55:09 GMT 2022
    - 3.8K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/llm/AbstractLlmClientTest.java

        public void test_stripHtmlTags_preservesPlainText() {
            assertEquals("plain text", client.testStripHtmlTags("plain text"));
        }
    
        @Test
        public void test_stripHtmlTags_handlesNull() {
            assertNull(client.testStripHtmlTags(null));
        }
    
        @Test
        public void test_stripHtmlTags_handlesEmpty() {
            assertEquals("", client.testStripHtmlTags(""));
        }
    
        @Test
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 19 07:04:54 GMT 2026
    - 53K bytes
    - Click Count (0)
  10. src/test/java/jcifs/spnego/SpnegoConstantsTest.java

    package jcifs.spnego;
    
    import static org.junit.jupiter.api.Assertions.assertAll;
    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.junit.jupiter.api.Assertions.assertThrows;
    import static org.junit.jupiter.api.Assertions.assertTrue;
    
    import java.lang.reflect.Field;
    import java.lang.reflect.Modifier;
    import java.util.Map;
    import java.util.regex.Pattern;
    
    import org.junit.jupiter.api.DisplayName;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 3.7K bytes
    - Click Count (0)
Back to Top