Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 960 for correctly (0.04 sec)

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

            assertEquals(SmbOperationException.ErrorCategory.NETWORK, exception.getErrorCategory());
            assertTrue(exception.isRetryable());
        }
    
        @Test
        @DisplayName("Should handle retry policy correctly")
        void testRetryPolicy() {
            // Given
            SmbOperationException.RetryPolicy policy = new SmbOperationException.RetryPolicy(3, 1000, 10000, 2.0, true);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/fscc/FileFsFullSizeInformationTest.java

        @Nested
        @DisplayName("Decode Method Tests")
        class DecodeMethodTests {
    
            @Test
            @DisplayName("Should decode buffer with typical values correctly")
            void shouldDecodeBufferWithTypicalValues() throws SMBProtocolDecodingException {
                // Given - prepare buffer with typical file system values
                ByteBuffer buffer = ByteBuffer.allocate(32);
                buffer.order(ByteOrder.LITTLE_ENDIAN);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 30.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/SmbTreeHandleTest.java

            // Verify that close() was called on the mock
            verify(smbTreeHandle).close();
        }
    
        /**
         * Test for close() method throwing CIFSException.
         * Verifies that the method correctly throws a CIFSException when configured to do so.
         * @throws CIFSException
         */
        @Test
        void testClose_throwsCIFSException() throws CIFSException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/smb1/SmbComCloseTest.java

        @Test
        @DisplayName("happy: constructor sets command correctly")
        void testConstructorSetsCommand() {
            SmbComClose close = new SmbComClose(1, 12345L);
            assertEquals(SMB_COM_CLOSE, close.command, "command should be SMB_COM_CLOSE after construction");
        }
    
        /**
         * Verify that writeParameterWordsWireFormat writes the file id and the
         * unsigned time correctly.  The last write time is zero which should be
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/MsrpcGetMembersInAliasTest.java

        @Mock
        private lsarpc.LsarSidArray mockSids;
    
        @BeforeEach
        void setUp() {
            MockitoAnnotations.openMocks(this);
        }
    
        @Test
        @DisplayName("Should correctly initialize MsrpcGetMembersInAlias with provided parameters")
        void testConstructorInitialization() {
            // Given
            // Mocks are already initialized by @BeforeEach
    
            // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  6. src/test/java/jcifs/util/CryptoTest.java

    import jcifs.BaseTest;
    
    /**
     * Test class for Crypto utility functionality
     */
    @DisplayName("Crypto Utility Tests")
    class CryptoTest extends BaseTest {
    
        @Test
        @DisplayName("Should calculate MD4 hash correctly")
        void testMD4Hash() {
            // Given
            String input = "Hello World";
            byte[] data = input.getBytes();
    
            // When
            MessageDigest md4 = Crypto.getMD4();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  7. guava/src/com/google/common/primitives/UnsignedInteger.java

       * primitive conversion from {@code int} to {@code float}, and correctly rounded.
       */
      @Override
      public float floatValue() {
        return longValue();
      }
    
      /**
       * Returns the value of this {@code UnsignedInteger} as a {@code double}, analogous to a widening
       * primitive conversion from {@code int} to {@code double}, and correctly rounded.
       */
      @Override
      public double doubleValue() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb1/smb1/HandlerTest.java

            // Act & Assert
            assertThrows(NullPointerException.class, () -> handler.openConnection(null));
        }
    
        @Test
        @DisplayName("URL created with handler parses SMB URL correctly")
        void testUrlCreationWithHandler() throws Exception {
            // Act - Create various SMB URLs using the handler
            URL url1 = new URL(null, "smb://host/share", handler);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/ServerMessageBlock2Test.java

            }
        }
    
        @Nested
        @DisplayName("Flag Operations Tests")
        class FlagOperationsTests {
    
            @Test
            @DisplayName("Should add flags correctly")
            void testAddFlags() {
                assertEquals(0, testMessage.getFlags());
                testMessage.addFlags(ServerMessageBlock2.SMB2_FLAGS_SIGNED);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 39.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/TreeConnectResponseTest.java

                int tid = response.getTid();
    
                // Then
                assertEquals(54321, tid, "getTid should return tree ID");
            }
    
            @Test
            @DisplayName("Should validate tree ID correctly")
            void testIsValidTid() {
                // Test valid TID
                response.setTreeId(100);
                assertTrue(response.isValidTid(), "Positive tree ID should be valid");
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.9K bytes
    - Viewed (0)
Back to top