Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 86 for NPE (0.01 sec)

  1. guava-tests/test/com/google/common/collect/SubMapMultimapAsMapImplementsMapTest.java

          // GWT's TreeMap.entrySet().removeAll(null) doesn't throws NPE.
        }
      }
    
      @Override
      public void testEntrySetRetainAllNullFromEmpty() {
        try {
          super.testEntrySetRetainAllNullFromEmpty();
        } catch (RuntimeException tolerated) {
          // GWT's TreeMap.entrySet().retainAll(null) doesn't throws NPE.
        }
      }
    
      @Override
      public void testKeySetRemoveAllNullFromEmpty() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 14:50:24 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/ForMapMultimapAsMapImplementsMapTest.java

          // GWT's HashMap.entrySet().removeAll(null) doesn't throws NPE.
        }
      }
    
      @Override
      public void testEntrySetRetainAllNullFromEmpty() {
        try {
          super.testEntrySetRetainAllNullFromEmpty();
        } catch (RuntimeException tolerated) {
          // GWT's HashMap.entrySet().retainAll(null) doesn't throws NPE.
        }
      }
    
      @Override
      public void testKeySetRemoveAllNullFromEmpty() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/SubMapMultimapAsMapImplementsMapTest.java

          // GWT's TreeMap.entrySet().removeAll(null) doesn't throws NPE.
        }
      }
    
      @Override
      public void testEntrySetRetainAllNullFromEmpty() {
        try {
          super.testEntrySetRetainAllNullFromEmpty();
        } catch (RuntimeException tolerated) {
          // GWT's TreeMap.entrySet().retainAll(null) doesn't throws NPE.
        }
      }
    
      @Override
      public void testKeySetRemoveAllNullFromEmpty() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 14:50:24 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/smb1/NtlmChallengeTest.java

            @Test
            @DisplayName("toString with null challenge throws NPE")
            void testToStringWithNullChallengeThrowsNPE() {
                UniAddress dc = mock(UniAddress.class);
                when(dc.toString()).thenReturn("ANYSERVER");
    
                NtlmChallenge nc = new NtlmChallenge(null, dc);
    
                // Hexdump.toHexString will throw NPE when accessing challenge.length
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/util/Base64Test.java

        }
    
        @Test
        @DisplayName("encode should throw NPE on null input")
        void testEncodeNull() {
            assertThrows(NullPointerException.class, () -> Base64.encode(null));
        }
    
        @Test
        @DisplayName("decode should throw NPE on null input")
        void testDecodeNull() {
            assertThrows(NullPointerException.class, () -> Base64.decode(null));
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/CredentialsInternalTest.java

            TestCredentials creds = new TestCredentials("DOM", false, false, new Subject(), false);
            // Act & Assert
            NullPointerException npe = assertThrows(NullPointerException.class, () -> creds.unwrap(null));
            assertEquals("type", npe.getMessage());
        }
    
        @Test
        @DisplayName("clone returns a distinct copy with same properties")
        void clone_returns_copy() {
            // Arrange
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  7. guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java

        public void oneArg(String s) {
          // Fail: missing NPE for s
        }
      }
    
      public void testFailOneArgDoesntThrowNpe() {
        shouldFail(new FailOneArgDoesntThrowNpe());
      }
    
      private static class FailOneArgThrowsWrongType extends PassObject {
        @Override
        public void oneArg(String s) {
          doThrow(s); // Fail: throwing non-NPE exception for null s
        }
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 47.7K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SmbResourceLocatorInternalTest.java

        }
    
        // Invalid input: null reqPath leads to NPE from implementation
        @Test
        @DisplayName("handleDFSReferral throws NPE on null reqPath")
        void handleDfsReferralNullPathThrows() {
            when(locator.handleDFSReferral(any(), isNull())).thenThrow(new NullPointerException("reqPath"));
            NullPointerException npe = assertThrows(NullPointerException.class, () -> locator.handleDFSReferral(referral, null));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb1/dcerpc/ndr/NdrHyperTest.java

        }
    
        /**
         * Ensure encode throws NPE when passed a null buffer.
         */
        @Test
        @DisplayName("Encode with null buffer throws NullPointerException")
        public void testEncodeNullBuffer() throws NdrException {
            NdrHyper hyper = new NdrHyper(5L);
            assertThrows(NullPointerException.class, () -> hyper.encode(null));
        }
    
        /**
         * Ensure decode throws NPE when passed a null buffer.
         */
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SmbTreeHandleImplTest.java

            assertFalse(handle.isSMB2());
        }
    
        @Test
        @DisplayName("Null treeConnection throws NPE")
        void constructorNullTreeConnection() {
            // Null treeConnection throws NPE when acquire() is called
            assertThrows(NullPointerException.class, () -> new SmbTreeHandleImpl(resourceLoc, null));
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.4K bytes
    - Viewed (0)
Back to top