Search Options

Results per page
Sort
Preferred Languages
Advance

Results 181 - 190 of 583 for incorrectly (0.06 sec)

  1. src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeTest.java

        private static final int TEST_LENGTH = TEST_DATA.length;
    
        @BeforeEach
        void setUp() {
            MockitoAnnotations.openMocks(this);
        }
    
        @Test
        @DisplayName("Test constructor initializes fields correctly")
        void testConstructor() {
            // Act
            TransTransactNamedPipe trans = new TransTransactNamedPipe(mockConfig, TEST_FID, TEST_DATA, TEST_OFFSET, TEST_LENGTH);
    
            // Assert
            assertNotNull(trans);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/ntlmssp/Type2MessageTest.java

                        Type2Message.NTLMSSP_NEGOTIATE_NTLM | Type2Message.NTLMSSP_NEGOTIATE_VERSION | Type2Message.NTLMSSP_NEGOTIATE_UNICODE;
                assertEquals(expectedFlags, message.getFlags(), "Default flags should be set correctly");
                assertNull(message.getChallenge(), "Challenge should initially be null");
                assertNull(message.getTarget(), "Target should initially be null");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 38.9K 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/lease/Smb2LeaseKeyTest.java

            key.encode(buffer, 2);
    
            for (int i = 0; i < 16; i++) {
                assertEquals(testBytes[i], buffer[i + 2]);
            }
        }
    
        @Test
        @DisplayName("Should implement equals correctly")
        void testEquals() {
            byte[] testBytes1 = new byte[] { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10 };
            byte[] testBytes2 = Arrays.copyOf(testBytes1, 16);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 00:16:17 UTC 2025
    - 6K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/smb1/TestLockingTest.java

        }
    
        @Nested
        @DisplayName("Argument parsing")
        class ArgumentParsing {
    
            @Test
            @DisplayName("URL parameter is correctly parsed")
            void urlParameterParsing() {
                String expectedUrl = "smb://server/share/test.txt";
                TestLocking t = new TestLocking();
    
                // Simulate argument parsing
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_security/test_tutorial004.py

    def test_login_incorrect_password(mod: ModuleType):
        client = TestClient(mod.app)
        response = client.post(
            "/token", data={"username": "johndoe", "password": "incorrect"}
        )
        assert response.status_code == 401, response.text
        assert response.json() == {"detail": "Incorrect username or password"}
    
    
    def test_login_incorrect_username(mod: ModuleType):
        client = TestClient(mod.app)
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 13.3K bytes
    - Viewed (0)
  7. docs_src/security/tutorial007_py39.py

            current_password_bytes, correct_password_bytes
        )
        if not (is_correct_username and is_correct_password):
            raise HTTPException(
                status_code=status.HTTP_401_UNAUTHORIZED,
                detail="Incorrect username or password",
                headers={"WWW-Authenticate": "Basic"},
            )
        return credentials.username
    
    
    @app.get("/users/me")
    def read_current_user(username: str = Depends(get_current_username)):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 1.1K bytes
    - Viewed (0)
  8. internal/config/config_test.go

    				`comment="really long comment"`:                {},
    			},
    		},
    		// Incorrect delimiter, expected fields should be empty.
    		{
    			input:          `comment:"really long comment" connection_string:"host=localhost port=2832"`,
    			keys:           []string{"connection_string", "comment"},
    			expectedFields: map[string]struct{}{},
    		},
    		// Incorrect type of input v/s required keys.
    		{
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  9. schema/utils_test.go

    	settings := ParseTagSetting(reflect.StructTag(tag).Get("gorm"), ";")
    	if v, ok := settings["EXPRESSION"]; !ok || v != `to_tsvector('english', "Name")` {
    		t.Errorf("ParseTagSetting did not handle escaped double quotes correctly: got %#v", v)
    	}
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Thu Oct 30 11:15:36 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  10. docs_src/security/tutorial007_an_py39.py

            current_password_bytes, correct_password_bytes
        )
        if not (is_correct_username and is_correct_password):
            raise HTTPException(
                status_code=status.HTTP_401_UNAUTHORIZED,
                detail="Incorrect username or password",
                headers={"WWW-Authenticate": "Basic"},
            )
        return credentials.username
    
    
    @app.get("/users/me")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Mar 26 16:56:53 UTC 2024
    - 1.1K bytes
    - Viewed (0)
Back to top