Search Options

Results per page
Sort
Preferred Languages
Advance

Results 381 - 390 of 471 for NullPointerException (0.12 sec)

  1. src/test/java/jcifs/smb/SpnegoContextTest.java

        void testInitSecContextNullBufferNonZeroLen() throws Exception {
            SpnegoContext ctx = newContext();
            // A null buffer with non-zero len leads to NPE while slicing input
            assertThrows(NullPointerException.class, () -> ctx.initSecContext(null, 0, 1));
            verify(this.mechContext, never()).initSecContext(any(), anyInt(), anyInt());
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/util/MemoryUtilTest.java

            assertTrue(log.matches(".*used [0-9.]+[a-zA-Z]+, heap [0-9.]+[a-zA-Z]+, max [0-9.]+[a-zA-Z]+.*"));
        }
    
        public void test_byteCountToDisplaySize_edgeCases() {
            // Test negative values - should throw NullPointerException in private method via BigInteger.valueOf
            try {
                MemoryUtil.byteCountToDisplaySize(-1L);
                // If no exception, verify it handles negative as expected
            } catch (Exception e) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 11.8K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/SequentialExecutorTest.java

      @Override
      public void setUp() {
        fakePool = new FakeExecutor();
        e = new SequentialExecutor(fakePool);
      }
    
      public void testConstructingWithNullExecutor_fails() {
        assertThrows(NullPointerException.class, () -> new SequentialExecutor(null));
      }
    
      public void testBasics() {
        AtomicInteger totalCalls = new AtomicInteger();
        Runnable intCounter =
            new Runnable() {
              @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/FileEntryAdapterIteratorTest.java

            assertEquals("Not supported", ex.getMessage());
        }
    
        @Test
        @DisplayName("Null delegate causes NPE")
        void nullDelegate() {
            assertThrows(NullPointerException.class, () -> {
                new FileEntryAdapterIterator(parent, null, null) {
                    @Override
                    protected SmbResource adapt(FileEntry e) {
                        return resource;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/FileEntryTest.java

        void nullReference_throwsNPE() {
            // Arrange
            FileEntry e = null;
            // Act & Assert: demonstrate invalid usage results in NPE
            assertThrows(NullPointerException.class, () -> e.getName());
        }
    
        @Nested
        @DisplayName("Mockito stubbing for edge cases")
        class MockitoEdgeCases {
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessTimeResourceProviderTest.java

        public void test_constructor_nullConfig() {
            try {
                new FessTimeResourceProvider(null);
                // Constructor may accept null, so test continues
                assertTrue(true);
            } catch (NullPointerException e) {
                // Expected if constructor validates input
                assertTrue(true);
            }
        }
    
        // Test with different time adjustments
        public void test_withDifferentTimeAdjustments() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 17.4K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/util/ComponentUtil.java

         */
        @SuppressWarnings("unchecked")
        public static <T> T getComponent(final Class<T> clazz) {
            try {
                return SingletonLaContainer.getComponent(clazz);
            } catch (final NullPointerException e) {
                if (logger.isDebugEnabled()) {
                    throw new ContainerNotAvailableException(clazz.getCanonicalName(), e);
                }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 28.9K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/RangeTest.java

      public void testEncloseAll_nullValue() {
        List<@Nullable Integer> nullFirst = Lists.newArrayList(null, 0);
        assertThrows(NullPointerException.class, () -> Range.encloseAll((List<Integer>) nullFirst));
        List<@Nullable Integer> nullNotFirst = Lists.newArrayList(0, null);
        assertThrows(NullPointerException.class, () -> Range.encloseAll((List<Integer>) nullNotFirst));
      }
    
      public void testEquivalentFactories() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 24.2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformationResponseTest.java

        void testGetInfoWithTypeWhenNull() {
            response = new Trans2QueryPathInformationResponse(mockConfig, FileInformation.FILE_BASIC_INFO);
    
            assertThrows(NullPointerException.class, () -> {
                response.getInfo(FileBasicInfo.class);
            });
        }
    
        @Test
        @DisplayName("Test getInfo with compatible type")
        void testGetInfoWithCompatibleType() throws Exception {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/ntlmssp/Type1MessageTest.java

            });
        }
    
        @Test
        @DisplayName("Should handle parsing null message bytes")
        void testNullMessageBytes() {
            // When/Then
            assertThrows(NullPointerException.class, () -> {
                new Type1Message((byte[]) null);
            });
        }
    
        @Test
        @DisplayName("Should create string representation")
        void testStringRepresentation() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.1K bytes
    - Viewed (0)
Back to top