Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for NullPointerException (0.1 sec)

  1. src/test/java/org/codelibs/core/exception/SUnsupportedOperationExceptionTest.java

                    new ClUnsupportedOperationException("hoge", new NullPointerException());
            assertThat(clUnsupportedOperationException.getMessage(), is("hoge"));
            assertThat(clUnsupportedOperationException.getCause(), instanceOf(NullPointerException.class));
        }
    
        /**
         * Test method for
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/exception/SIllegalStateExceptionTest.java

            final ClIllegalStateException clIllegalStateException = new ClIllegalStateException("hoge", new NullPointerException());
            assertThat(clIllegalStateException.getMessage(), is("hoge"));
            assertThat(clIllegalStateException.getCause(), instanceOf(NullPointerException.class));
        }
    
        /**
         * Test method for
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/suggest/index/writer/SuggestWriterResultTest.java

            result.addFailure(new RuntimeException("RuntimeException"));
            result.addFailure(new IllegalStateException("IllegalStateException"));
            result.addFailure(new NullPointerException("NullPointerException"));
    
            assertEquals(4, result.getFailures().size());
            assertTrue(result.getFailures().get(0) instanceof Exception);
            assertTrue(result.getFailures().get(1) instanceof RuntimeException);
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Thu Nov 13 00:40:54 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/dcerpc/msrpc/LsarSidArrayXTest.java

        }
    
        @Test
        void testConstructorWithNullSIDArray() {
            jcifs.SID[] sids = null;
            // Expect NullPointerException when passing a null array to the constructor
            assertThrows(NullPointerException.class, () -> new LsarSidArrayX(sids),
                    "Should throw NullPointerException when sids array is null");
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/exception/NullArgumentException.java

     */
    package org.codelibs.core.exception;
    
    import static org.codelibs.core.collection.ArrayUtil.asArray;
    
    /**
     * Exception thrown when an argument is null.
     *
     * Intended to be used instead of throwing {@link NullPointerException}.
     *
     * @author wyukawa
     */
    public class NullArgumentException extends ClIllegalArgumentException {
    
        /**
         *
         */
        private static final long serialVersionUID = 1L;
    
        /**
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jun 19 09:12:22 UTC 2025
    - 1.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/session/Smb2LogoffResponseTest.java

            }
    
            @Test
            @DisplayName("Null buffer leads to NullPointerException from readInt2")
            void nullBuffer_throwsNPE() {
                // Arrange
                Smb2LogoffResponse resp = newResponse();
    
                // Act & Assert
                assertThrows(NullPointerException.class, () -> resp.readBytesWireFormat(null, 0));
            }
    
            @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  7. src/test/java/jcifs/SmbTreeTest.java

         */
        @Test
        void testUnwrap_withNullParameter() {
            when(smbTree.unwrap(null)).thenThrow(new NullPointerException("Type cannot be null"));
    
            assertThrows(NullPointerException.class, () -> smbTree.unwrap(null), "Should throw NullPointerException when type is null");
        }
    
        /**
         * Test for method interaction.
         * Verifies that unwrap and close can be used in sequence.
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/session/Smb2LogoffRequestTest.java

            }
    
            @Test
            @DisplayName("createResponse throws NullPointerException when CIFSContext is null")
            void createResponse_nullContext_throws() {
                // Arrange
                Smb2LogoffRequest req = newRequest();
    
                // Act/Assert
                assertThrows(NullPointerException.class, () -> req.createResponse(null, req));
            }
    
            @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/core/exception/SRuntimeExceptionTest.java

            System.out.println(ex.getMessage());
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testGetCause() throws Exception {
            final Throwable t = new NullPointerException("test");
            final ClRuntimeException ex = new ClRuntimeException("ECL0017", asArray(t), t);
            assertThat(ex.getCause(), is(t));
            ex.printStackTrace();
        }
    
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb1/trans/TransCallNamedPipeResponseTest.java

            assertNotNull(nullBufferResponse);
    
            // But trying to read data should cause NullPointerException
            byte[] buffer = new byte[10];
            assertThrows(NullPointerException.class, () -> nullBufferResponse.readDataWireFormat(buffer, 0, 5));
        }
    
        @Test
        void testReadDataWireFormatWithNegativeLength() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.8K bytes
    - Viewed (0)
Back to top