Search Options

Results per page
Sort
Preferred Languages
Advance

Results 421 - 430 of 471 for NullPointerException (0.09 sec)

  1. guava-tests/test/com/google/common/base/FunctionsTest.java

                    new Object() {
                      @Override
                      public String toString() {
                        return "I'm a string";
                      }
                    }));
        assertThrows(NullPointerException.class, () -> Functions.toStringFunction().apply(null));
      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
      public void testToStringFunctionSerializable() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SIDCacheImplTest.java

            SIDCacheImpl cache = new SIDCacheImpl(mock(CIFSContext.class));
            CIFSContext ctx = mock(CIFSContext.class);
    
            // Null sids array -> NPE
            assertThrows(NullPointerException.class, () -> cache.resolveSids(ctx, "server", null, 0, 1));
    
            // Bad offset/length leads to ArrayIndexOutOfBoundsException
            jcifs.SID[] sids = new jcifs.SID[] { sid("S-1-1-0") };
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/lock/Smb2OplockBreakNotificationTest.java

                // The implementation calls Hexdump.toHexString which throws NPE on null
                // This test verifies the actual behavior
                assertThrows(NullPointerException.class, () -> notification.toString());
            }
    
            @ParameterizedTest
            @DisplayName("Should format different oplock levels correctly")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/primitives/FloatsTest.java

            }
          }
        }
      }
    
      public void testToArray_withNull() {
        List<@Nullable Float> list = Arrays.asList(0.0f, 1.0f, null);
        assertThrows(NullPointerException.class, () -> Floats.toArray(list));
      }
    
      public void testToArray_withConversion() {
        float[] array = {0.0f, 1.0f, 2.0f};
    
        List<Byte> bytes = Arrays.asList((byte) 0, (byte) 1, (byte) 2);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 29.4K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/primitives/IntsTest.java

            }
          }
        }
      }
    
      public void testToArray_withNull() {
        List<@Nullable Integer> list = Arrays.asList((int) 0, (int) 1, null);
        assertThrows(NullPointerException.class, () -> Ints.toArray(list));
      }
    
      public void testToArray_withConversion() {
        int[] array = {0, 1, 2};
    
        List<Byte> bytes = Arrays.asList((byte) 0, (byte) 1, (byte) 2);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 29.2K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/primitives/FloatsTest.java

            }
          }
        }
      }
    
      public void testToArray_withNull() {
        List<@Nullable Float> list = Arrays.asList(0.0f, 1.0f, null);
        assertThrows(NullPointerException.class, () -> Floats.toArray(list));
      }
    
      public void testToArray_withConversion() {
        float[] array = {0.0f, 1.0f, 2.0f};
    
        List<Byte> bytes = Arrays.asList((byte) 0, (byte) 1, (byte) 2);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 29.4K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/cache/PopulatedCachesTest.java

          assertEquals(0, cache.size());
    
          entry.setValue(3);
          assertEquals(1, cache.size());
          assertEquals(3, cache.getIfPresent(1));
          checkValidState(cache);
    
          assertThrows(NullPointerException.class, () -> entry.setValue(null));
          checkValidState(cache);
        }
      }
    
      /* ---------------- Local utilities -------------- */
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java

       *   <li>All visible static methods are checked such that passing null for any parameter that's
       *       not annotated nullable (according to the rules of {@link NullPointerTester}) should throw
       *       {@link NullPointerException}.
       *   <li>If there is any visible constructor or visible static factory method declared by the
       *       class, all visible instance methods will be checked too using the instance created by
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 17.8K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/base/FunctionsTest.java

                    new Object() {
                      @Override
                      public String toString() {
                        return "I'm a string";
                      }
                    }));
        assertThrows(NullPointerException.class, () -> Functions.toStringFunction().apply(null));
      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
      public void testToStringFunctionSerializable() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/ntlmssp/Type3MessageTest.java

            });
        }
    
        @Test
        @DisplayName("Should handle parsing null message bytes")
        void testNullMessageBytes() {
            // When/Then
            assertThrows(NullPointerException.class, () -> {
                new Type3Message((byte[]) null);
            });
        }
    
        /**
         * Helper method to create a mock Type 2 message for testing
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.3K bytes
    - Viewed (0)
Back to top