Search Options

Results per page
Sort
Preferred Languages
Advance

Results 251 - 260 of 648 for isInvalid (0.04 sec)

  1. src/test/java/jcifs/util/transport/RequestTimeoutExceptionTest.java

        void testMessageAndCauseConstructor() {
            // Test the constructor with both message and cause arguments
            String message = "Test message with cause";
            Throwable cause = new IllegalArgumentException("Invalid argument");
            RequestTimeoutException exception = new RequestTimeoutException(message, cause);
            assertEquals(message, exception.getMessage(), "Message should match the provided string");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbNamedPipeTest.java

                assertEquals("Named pipes are only valid on IPC$", ex.getMessage());
            }
    
            @Test
            @DisplayName("Null context throws NPE (invalid input)")
            void nullContextThrows() {
                assertThrows(NullPointerException.class, () -> new SmbNamedPipe("smb://server/IPC$/foo", 0, null));
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/app/pager/FileConfigPager.java

        public void setExistNextPage(final boolean existNextPage) {
            this.existNextPage = existNextPage;
        }
    
        /**
         * Gets the number of records per page.
         * If page size is not set or is invalid, returns the default page size.
         *
         * @return the page size
         */
        public int getPageSize() {
            if (pageSize <= 0) {
                pageSize = getDefaultPageSize();
            }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/app/pager/RelatedQueryPager.java

         */
        public void setExistNextPage(final boolean existNextPage) {
            this.existNextPage = existNextPage;
        }
    
        /**
         * Gets the number of records to display per page.
         * If not set or invalid, returns the default page size.
         *
         * @return the page size
         */
        public int getPageSize() {
            if (pageSize <= 0) {
                pageSize = getDefaultPageSize();
            }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  5. api/maven-api-core/src/main/java/org/apache/maven/api/services/DependencyCoordinatesFactory.java

         * @return a new {@link DependencyCoordinates} object
         *
         * @throws IllegalArgumentException if {@code request} is null or
         *         if {@code request.getSession()} is null or invalid
         */
        @Nonnull
        DependencyCoordinates create(@Nonnull DependencyCoordinatesFactoryRequest request);
    
        @Nonnull
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Tue Aug 27 21:13:34 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/spnego/NegTokenTargTest.java

    import org.junit.jupiter.api.DisplayName;
    import org.junit.jupiter.api.Test;
    
    /**
     * Unit tests for {@link NegTokenTarg}. The class has no external
     * collaborators so tests are mostly focused on round‑trip
     * serialisation and invalid input handling.
     */
    class NegTokenTargTest {
    
        @Test
        @DisplayName("happy path – full token round‑trip")
        void testRoundTripFull() throws IOException {
            // Arrange – create a fully populated token
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/job/ExecJobTest.java

            System.clearProperty("config.app.module");
        }
    
        // Test invalid regex in custom properties
        public void test_customProperties_invalidRegex() {
            List<String> cmdList = new ArrayList<>();
    
            try {
                execJob.testAddFessCustomSystemProperties(cmdList, "[invalid(regex");
                fail("Should handle invalid regex");
            } catch (Exception e) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 24.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoResponseTest.java

        }
    
        @Test
        @DisplayName("Test readBytesWireFormat with invalid structure size throws exception")
        void testReadBytesWireFormatInvalidStructureSize() {
            response = new Smb2QueryInfoResponse(mockConfig, (byte) 1, (byte) 2);
            byte[] buffer = new byte[1024];
            int bufferIndex = 0;
    
            // Set structure size to 10 (invalid, should be 9)
            SMBUtil.writeInt2(10, buffer, bufferIndex);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/create/Smb2CloseResponseTest.java

            }
    
            @Test
            @DisplayName("Should throw exception for invalid structure size")
            void testReadBytesWireFormatWithInvalidStructureSize() {
                // Given
                byte[] buffer = new byte[60];
                SMBUtil.writeInt2(59, buffer, 0); // Invalid structure size (should be 60)
    
                // When & Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 26.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SmbTreeConnectionTraceTest.java

                new SmbTreeConnectionTrace(ctx).getConnectedShare();
            }));
        }
    
        @ParameterizedTest(name = "Invalid usage causes NPE: {0}")
        @MethodSource("npePublicGetters")
        void getters_withoutTree_throwNPE(String name, org.junit.jupiter.api.function.Executable call) {
            // Each call is invalid without a held tree and should throw NPE
            assertThrows(NullPointerException.class, call);
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.7K bytes
    - Viewed (0)
Back to top