Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 31 - 40 of 530 for Correct (0.04 seconds)

  1. src/test/java/jcifs/smb1/smb1/NetShareEnumResponseTest.java

            assertEquals(0, share1.type, "Share 1 raw type should be 0.");
            assertEquals("Remark 1", share1.remark.trim(), "Share 1 remark should be correct.");
    
            SmbShareInfo share2 = (SmbShareInfo) response.results[1];
            assertEquals("IPC$", share2.getName().trim(), "Share 2 name should be correct.");
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5.4K bytes
    - Click Count (0)
  2. src/test/java/jcifs/util/transport/ResponseTest.java

            verify(mockResponse, times(1)).getErrorCode();
        }
    
        @Test
        void testSetMid() {
            long mid = 12345L;
            mockResponse.setMid(mid);
    
            // Verify that the method was called with the correct argument
            verify(mockResponse, times(1)).setMid(mid);
        }
    
        @Test
        void testGetMid() {
            long mid = 54321L;
            when(mockResponse.getMid()).thenReturn(mid);
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 6.5K bytes
    - Click Count (0)
  3. tests/migrate_test.go

    					t.Fatalf("column id primary key should be correct, name: %v, column: %#v", columnType.Name(),
    						columnType)
    				}
    			case "name":
    				dataType := DB.Dialector.DataTypeOf(stmt.Schema.LookUpField(columnType.Name()))
    				if !strings.Contains(strings.ToUpper(dataType), strings.ToUpper(columnType.DatabaseTypeName())) {
    					t.Fatalf("column name type should be correct, name: %v, length: %v, expects: %v, column: %#v",
    Created: Sun Dec 28 09:35:17 GMT 2025
    - Last Modified: Wed Aug 20 04:51:17 GMT 2025
    - 65.2K bytes
    - Click Count (0)
  4. src/test/java/jcifs/internal/fscc/FileBothDirectoryInfoTest.java

        void testGetType() {
            assertEquals(SmbConstants.TYPE_FILESYSTEM, fileBothDirectoryInfo.getType());
        }
    
        @Test
        @DisplayName("Test getFileIndex returns correct value")
        void testGetFileIndex() throws SMBProtocolDecodingException {
            // Prepare test data
            byte[] buffer = createValidBuffer("file.txt", "FILE~1.TXT", true);
            int expectedFileIndex = 0x12345678;
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 20.9K bytes
    - Click Count (0)
  5. docs/en/docs/advanced/additional-responses.md

    The correct place is:
    
    * In the key `content`, that has as value another JSON object (`dict`) that contains:
        * A key with the media type, e.g. `application/json`, that contains as value another JSON object, that contains:
            * A key `schema`, that has as the value the JSON Schema from the model, here's the correct place.
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 8.9K bytes
    - Click Count (0)
  6. src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralResponseTest.java

        class ConstantsTests {
    
            @Test
            @DisplayName("Should have correct FLAGS_NAME_LIST_REFERRAL value")
            void testFlagsNameListReferralConstant() {
                assertEquals(0x0002, Trans2GetDfsReferralResponse.FLAGS_NAME_LIST_REFERRAL);
            }
    
            @Test
            @DisplayName("Should have correct FLAGS_TARGET_SET_BOUNDARY value")
            void testFlagsTargetSetBoundaryConstant() {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 19.4K bytes
    - Click Count (0)
  7. src/test/java/jcifs/internal/smb1/trans/TransWaitNamedPipeTest.java

        private String testPipeName = "\\PIPE\\testpipe";
    
        @BeforeEach
        void setUp() {
            MockitoAnnotations.openMocks(this);
        }
    
        @Test
        @DisplayName("Constructor should initialize with correct values")
        void testConstructor() {
            // Act
            transWaitNamedPipe = new TransWaitNamedPipe(mockConfig, testPipeName);
    
            // Assert
            assertNotNull(transWaitNamedPipe);
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 8.8K bytes
    - Click Count (0)
  8. src/test/java/jcifs/dcerpc/msrpc/MsrpcSamrConnect2Test.java

            mockPolicyHandle = mock(SamrPolicyHandle.class);
            testServer = "testServer";
            testAccess = 0x02000000; // SAM_SERVER_CONNECT access right
        }
    
        @Test
        @DisplayName("Should construct with correct parameters")
        void constructorShouldInitializeFieldsCorrectly() {
            // When
            MsrpcSamrConnect2 msrpcSamrConnect2 = new MsrpcSamrConnect2(testServer, testAccess, mockPolicyHandle);
    
            // Then
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5.4K bytes
    - Click Count (0)
  9. src/test/java/jcifs/util/SecureKeyManagerTest.java

            assertEquals(32, derived1.length, "Derived key should have correct length");
            assertEquals(32, derived2.length, "Derived key should have correct length");
            assertEquals(32, derived3.length, "Derived key should have correct length");
    
            assertFalse(Arrays.equals(derived1, derived2), "Different labels should produce different keys");
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 14.2K bytes
    - Click Count (0)
  10. docs/en/docs/advanced/security/http-basic-auth.md

    Of course, the attackers would not try all this by hand, they would write a program to do it, possibly with thousands or millions of tests per second. And they would get just one extra correct letter at a time.
    
    But doing that, in some minutes or hours the attackers would have guessed the correct username and password, with the "help" of our application, just using the time taken to answer.
    
    #### Fix it with `secrets.compare_digest()` { #fix-it-with-secrets-compare-digest }
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sun Aug 31 09:15:41 GMT 2025
    - 5K bytes
    - Click Count (0)
Back to Top