Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 474 for NullPointerException (0.32 sec)

  1. src/test/java/org/codelibs/fess/auth/AuthenticationManagerTest.java

            User user = createTestUser("testuser");
            try {
                authenticationManager.insert(user);
                fail("Should throw NullPointerException when processing null chain");
            } catch (NullPointerException e) {
                // Expected behavior when null chain is processed
                assertTrue(true);
            }
        }
    
        // Test chains order preservation
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 14K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtCancelTest.java

                // Then
                assertNotNull(cancel);
                assertEquals(mid, cancel.getMid());
            }
    
            @Test
            @DisplayName("Should throw NullPointerException when config is null")
            void testNullConfigurationThrowsException() throws Exception {
                // Given
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/job/AggregateLogJobTest.java

        }
    
        public void test_execute_withNullPointerException() {
            // Setup mock SearchLogHelper that throws NullPointerException
            SearchLogHelper mockSearchLogHelper = new SearchLogHelper() {
                @Override
                public void storeSearchLog() {
                    throw new NullPointerException("Null value encountered");
                }
            };
            ComponentUtil.register(mockSearchLogHelper, "searchLogHelper");
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  4. api/maven-api-xml/src/main/java/org/apache/maven/api/xml/XmlNode.java

         * Returns the value of a specific attribute.
         *
         * @param name the name of the attribute to retrieve
         * @return the attribute value, or {@code null} if the attribute doesn't exist
         * @throws NullPointerException if name is null
         */
        @Nullable
        String attribute(@Nonnull String name);
    
        /**
         * Returns an immutable list of all child nodes.
         *
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Sat Jul 19 11:09:56 UTC 2025
    - 18.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbFileFilterTest.java

        }
    
        @Test
        @DisplayName("accept: rejects null input with meaningful NullPointerException")
        void accept_rejectsNullInput() {
            // Arrange: defensive filter that validates input
            SmbFileFilter filter = f -> {
                if (f == null) {
                    throw new NullPointerException("file must not be null");
                }
                return true; // not reached in this test
            };
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/HandlerTest.java

        }
    
        @Test
        @DisplayName("openConnection with null URL throws NullPointerException")
        void testOpenConnection_NullInput() {
            // Arrange
            Handler handler = newHandlerWith(mockCtx);
    
            // Act & Assert
            assertThrows(NullPointerException.class, () -> handler.openConnection(null), "Null URL should throw NPE");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/base/PreconditionsTest.java

      public void testCheckNotNull_simple_failure() {
        assertThrows(NullPointerException.class, () -> checkNotNull(null));
      }
    
      public void testCheckNotNull_simpleMessage_success() {
        String result = checkNotNull(NON_NULL_STRING, IGNORE_ME);
        assertSame(NON_NULL_STRING, result);
      }
    
      public void testCheckNotNull_simpleMessage_failure() {
        NullPointerException expected =
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 19K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/base/PreconditionsTest.java

      public void testCheckNotNull_simple_failure() {
        assertThrows(NullPointerException.class, () -> checkNotNull(null));
      }
    
      public void testCheckNotNull_simpleMessage_success() {
        String result = checkNotNull(NON_NULL_STRING, IGNORE_ME);
        assertSame(NON_NULL_STRING, result);
      }
    
      public void testCheckNotNull_simpleMessage_failure() {
        NullPointerException expected =
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 19K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/ImmutableSetMultimapTest.java

        assertThrows(NullPointerException.class, () -> builder.put(null, 1));
        assertThrows(NullPointerException.class, () -> builder.putAll(null, Arrays.asList(1, 2, 3)));
        assertThrows(NullPointerException.class, () -> builder.putAll(null, 1, 2, 3));
        assertThrows(
            NullPointerException.class, () -> builder.putAll((Multimap<String, Integer>) toPut));
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 28.7K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/testers/CollectionRetainAllTester.java

        super.setUp();
    
        empty = new Target(emptyCollection(), "empty");
        /*
         * We test that nullSingleton.retainAll(disjointList) does NOT throw a
         * NullPointerException when disjointList does not, so we can't use
         * MinimalCollection, which throws NullPointerException on calls to
         * contains(null).
         */
        List<E> disjointList = asList(e3(), e4());
        disjoint = new Target(disjointList, "disjoint");
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 18 15:05:43 UTC 2025
    - 10.7K bytes
    - Viewed (0)
Back to top