Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 583 for incorrectly (0.05 sec)

  1. src/test/java/jcifs/internal/smb2/RequestWithFileIdTest.java

            customRequest.setFileId(testFileId);
    
            // Then
            assertArrayEquals(testFileId, customRequest.getFileId(), "Custom implementation should store file ID correctly");
            assertEquals(1, customRequest.getSetCount(), "Should track set count correctly");
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  2. docs_src/security/tutorial003_an_py310.py

        if not user_dict:
            raise HTTPException(status_code=400, detail="Incorrect username or password")
        user = UserInDB(**user_dict)
        hashed_password = fake_hash_password(form_data.password)
        if not hashed_password == user.hashed_password:
            raise HTTPException(status_code=400, detail="Incorrect username or password")
    
        return {"access_token": user.username, "token_type": "bearer"}
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 24 19:03:06 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/netbios/NbtExceptionTest.java

    import jcifs.CIFSException;
    
    class NbtExceptionTest {
    
        /**
         * Test the constructor of NbtException.
         * It should correctly set errorClass and errorCode, and the message should be derived from getErrorString.
         */
        @Test
        @DisplayName("NbtException constructor should correctly set error class, error code, and message")
        void testConstructor() {
            int errorClass = NbtException.ERR_NAM_SRVC;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  4. impl/maven-core/src/test/java/org/apache/maven/configuration/internal/EnhancedCompositeBeanHelperTest.java

    import static org.mockito.Mockito.mock;
    import static org.mockito.Mockito.verify;
    import static org.mockito.Mockito.when;
    
    /**
     * Test for EnhancedCompositeBeanHelper to ensure it works correctly and provides performance benefits.
     */
    class EnhancedCompositeBeanHelperTest {
    
        private EnhancedCompositeBeanHelper helper;
        private ConverterLookup converterLookup;
        private ExpressionEvaluator evaluator;
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Nov 12 14:59:46 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/NtStatus.java

                "A device attached to the system is not functioning.", "Incorrect function.", "The parameter is incorrect.",
                "Invalid access to memory location.", "The handle is invalid.", "The parameter is incorrect.",
                "The system cannot find the file specified.", "The system cannot find the file specified.", "End of file",
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 14.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/create/CreateContextResponseTest.java

                return 0;
            }
        }
    
        @Nested
        @DisplayName("Interface Contract Tests")
        class InterfaceContractTests {
    
            @Test
            @DisplayName("Interface should be correctly implemented by mock")
            void testInterfaceImplementation() {
                CreateContextResponse response = mock(CreateContextResponse.class);
                assertNotNull(response);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 16.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectRequestTest.java

            // Then - verify command is set correctly using reflection
            Field commandField = ServerMessageBlock2.class.getDeclaredField("command");
            commandField.setAccessible(true);
            int command = (int) commandField.get(req);
    
            assertEquals(0x0003, command); // SMB2_TREE_CONNECT command value
    
            // Verify path is set correctly
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/create/Smb2CloseRequestTest.java

            request = new Smb2CloseRequest(mockConfig, testFileId, testFileName);
        }
    
        @Test
        @DisplayName("Constructor with fileId and fileName should initialize correctly")
        void testConstructorWithFileIdAndFileName() throws Exception {
            // Verify command is set correctly (SMB2_CLOSE = 0x0006)
            Field commandField = ServerMessageBlock2.class.getDeclaredField("command");
            commandField.setAccessible(true);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb1/com/SmbComSeekResponseTest.java

                    Arguments.of(0x7FFFFFFF, new byte[] { (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0x7F }));
        }
    
        @ParameterizedTest
        @MethodSource("int32Provider")
        @DisplayName("readParameterWordsWireFormat correctly decodes 32-bit offset")
        void testReadParameterWords(int expectedInt, byte[] bytes) {
            // The implementation reads via SMBUtil.readInt4 which returns an int
            // When assigned to a long field, it gets sign-extended
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/fscc/FileFsSizeInformationTest.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(24);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 25.9K bytes
    - Viewed (0)
Back to top