Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1471 - 1480 of 4,653 for nullif (0.04 seconds)

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

            assertEquals(message, exception.getMessage());
            assertNull(exception.getCause());
        }
    
        @Test
        public void test_constructor_withNullMessageAndCause() {
            // Test constructor with both null message and cause
            SsoProcessException exception = new SsoProcessException(null, null);
    
            assertNull(exception.getMessage());
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 13.8K bytes
    - Click Count (0)
  2. src/test/java/jcifs/internal/smb1/com/SmbComRenameTest.java

            assertThrows(NullPointerException.class, () -> {
                new SmbComRename(null, oldFileName, newFileName);
            });
        }
    
        /**
         * Test with null file names
         */
        @Test
        @DisplayName("Test constructor with null file names")
        public void testConstructorWithNullFileNames() {
            // When & Then - should not throw exception during construction
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 12.5K bytes
    - Click Count (0)
  3. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/BaseParser.java

            if (context.parserRequest.mavenHome() != null) {
                Path result = getCanonicalPath(context.parserRequest.mavenHome());
                context.systemPropertiesOverrides.put(Constants.MAVEN_HOME, result.toString());
                return result;
            } else {
                String mavenHome = System.getProperty(Constants.MAVEN_HOME);
                if (mavenHome == null) {
                    throw new IllegalStateException(
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Oct 10 07:39:11 GMT 2025
    - 25.5K bytes
    - Click Count (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/AbstractCollectionTester.java

       * Equivalent to {@link #expectMissing(Object[]) expectMissing}{@code (null)} except that the call
       * to {@code contains(null)} is permitted to throw a {@code NullPointerException}.
       *
       * @param message message to use upon assertion failure
       */
      protected void expectNullMissingWhenNullUnsupported(String message) {
        try {
          assertFalse(message, actualContents().contains(null));
        } catch (NullPointerException tolerated) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Jan 18 02:54:30 GMT 2025
    - 2.8K bytes
    - Click Count (0)
  5. guava-testlib/src/com/google/common/collect/testing/AbstractCollectionTester.java

       * Equivalent to {@link #expectMissing(Object[]) expectMissing}{@code (null)} except that the call
       * to {@code contains(null)} is permitted to throw a {@code NullPointerException}.
       *
       * @param message message to use upon assertion failure
       */
      protected void expectNullMissingWhenNullUnsupported(String message) {
        try {
          assertFalse(message, actualContents().contains(null));
        } catch (NullPointerException tolerated) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Jan 18 02:54:30 GMT 2025
    - 2.8K bytes
    - Click Count (0)
  6. src/main/java/jcifs/smb/SmbTreeHandleImpl.java

        protected void finalize() throws Throwable {
            try {
                // Add null check to prevent NPE if object was not fully constructed
                if (this.usageCount != null && this.usageCount.get() != 0) {
                    log.warn("Tree handle was not properly released, performing emergency cleanup: "
                            + (this.resourceLoc != null ? this.resourceLoc.getURL() : "unknown"));
                    emergencyReleaseHandle();
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 11.1K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/collect/FluentIterableTest.java

        Iterable<String> set = newHashSet("a", null, "b");
        assertTrue(FluentIterable.from(set).contains(null));
      }
    
      public void testContains_nullSetNo() {
        Iterable<String> set = ImmutableSortedSet.of("a", "b");
        assertFalse(FluentIterable.from(set).contains(null));
      }
    
      public void testContains_nullIterableYes() {
        Iterable<String> iterable = iterable("a", null, "b");
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 31.2K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/script/groovy/GroovyEngineTest.java

        }
    
        // ===== Null-Safety Tests =====
    
        /**
         * Test that evaluate returns null for null template
         */
        @Test
        public void test_evaluate_nullTemplate() {
            final Map<String, Object> params = new HashMap<>();
            params.put("test", "value");
            assertNull(groovyEngine.evaluate(null, params));
        }
    
        /**
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Mar 15 06:03:38 GMT 2026
    - 29.1K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/reflect/MutableTypeToInstanceMap.java

               * can be used with collections that may contain null. This collection is a collection of
               * non-null Entry objects (Entry objects that might contain null values but are not
               * themselves null), so we can treat it as a plain `Object[]`.
               */
              @SuppressWarnings("nullness")
              Object[] result = standardToArray();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue May 13 17:27:14 GMT 2025
    - 5.7K bytes
    - Click Count (0)
  10. guava-tests/test/com/google/common/escape/UnicodeEscaperTest.java

              return null;
            }
          };
    
      // Escapes everything except [a-zA-Z0-9]
      private static final UnicodeEscaper SIMPLE_ESCAPER =
          new UnicodeEscaper() {
            @Override
            protected char @Nullable [] escape(int cp) {
              return ('a' <= cp && cp <= 'z') || ('A' <= cp && cp <= 'Z') || ('0' <= cp && cp <= '9')
                  ? null
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 05:21:26 GMT 2026
    - 6K bytes
    - Click Count (0)
Back to Top