Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,993 for should (0.03 sec)

  1. docs/en/docs/advanced/openapi-callbacks.md

    In this case, you could want to document how that external API *should* look like. What *path operation* it should have, what body it should expect, what response it should return, etc.
    
    ## An app with callbacks { #an-app-with-callbacks }
    
    Let's see all this with an example.
    
    Imagine you develop an app that allows creating invoices.
    
    These invoices will have an `id`, `title` (optional), `customer`, and `total`.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/RequestWithFileIdTest.java

            assertNotNull(writeRequest, "Smb2WriteRequest should implement RequestWithFileId");
            assertNotNull(flushRequest, "Smb2FlushRequest should implement RequestWithFileId");
            assertNotNull(ioctlRequest, "Smb2IoctlRequest should implement RequestWithFileId");
            assertNotNull(lockRequest, "Smb2LockRequest should implement RequestWithFileId");
        }
    
        @Test
        @DisplayName("Should set file ID correctly in Smb2CloseRequest")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/util/transport/TransportExceptionTest.java

            }
    
            @Test
            @DisplayName("Should handle null root cause")
            void testConstructorWithNullRootCause() {
                TransportException exception = new TransportException((Throwable) null);
    
                assertNotNull(exception);
                assertNull(exception.getRootCause());
            }
    
            @Test
            @DisplayName("Should handle null message with root cause")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/util/transport/TransportTest.java

                }
    
                for (int state : connectedStates) {
                    transport.setState(state);
                    assertFalse(transport.isDisconnected(), "State " + state + " should not be disconnected");
                }
            }
    
            @Test
            @DisplayName("should correctly identify failed states")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java

            // Then
            assertNotNull(nonce1, "First secure nonce should not be null");
            assertNotNull(nonce2, "Second secure nonce should not be null");
            assertFalse(Arrays.equals(nonce1, nonce2), "Secure nonces should be different");
            assertTrue(nonce1.length > 0, "Secure nonce should have proper length");
        }
    
        @Test
        @DisplayName("Should handle concurrent secure nonce generation safely")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 44.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/ntlmssp/av/AvPairsTest.java

            assertNotNull(pairs, "Decoded pairs should not be null");
            assertEquals(1, pairs.size(), "Should have decoded one pair");
    
            AvPair pair = pairs.get(0);
            assertEquals(unknownType, pair.getType(), "Pair type should match unknown type");
            assertFalse(pair instanceof AvFlags, "Should not be decoded as specific type");
            assertFalse(pair instanceof AvTimestamp, "Should not be decoded as specific type");
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/Smb2ConstantsTest.java

                        "Dialect " + String.format("0x%04X", dialect) + " should be >= SMB 2.0.2");
            }
    
            @Test
            @DisplayName("Dialects should be in ascending order")
            void testDialectOrdering() {
                assertTrue(Smb2Constants.SMB2_DIALECT_0202 < Smb2Constants.SMB2_DIALECT_0210, "SMB 2.0.2 should be less than SMB 2.1");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SmbFileIntegrationTest.java

            assertFalse(file.exists(), "File should not exist initially");
    
            file.createNewFile();
            assertTrue(file.exists(), "File should exist after creation");
            assertTrue(file.isFile(), "Should be identified as a file");
            assertFalse(file.isDirectory(), "Should not be identified as a directory");
            assertEquals(0, file.length(), "New file should have zero length");
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 56K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb1/trans/TransPeekNamedPipeResponseTest.java

        }
    
        @Test
        @DisplayName("Constructor should initialize TransPeekNamedPipeResponse")
        void testConstructor() {
            // Assert
            assertNotNull(response);
            assertTrue(response instanceof SmbComTransactionResponse);
            assertEquals(0, response.getAvailable());
        }
    
        @Test
        @DisplayName("Should verify status constants are correctly defined")
        void testStatusConstants() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  10. src/test/java/jcifs/dcerpc/UUIDTest.java

                assertEquals(TIME_LOW, uuid.time_low, "time_low should match");
                assertEquals(TIME_MID, uuid.time_mid, "time_mid should match");
                assertEquals(TIME_HI_AND_VERSION, uuid.time_hi_and_version, "time_hi_and_version should match");
                assertEquals(CLOCK_SEQ_HI_AND_RESERVED, uuid.clock_seq_hi_and_reserved, "clock_seq_hi_and_reserved should match");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.2K bytes
    - Viewed (0)
Back to top