Search Options

Results per page
Sort
Preferred Languages
Advance

Results 331 - 340 of 2,214 for correct (0.04 sec)

  1. src/test/java/jcifs/internal/smb2/ioctl/SrvCopyChunkCopyResponseTest.java

                assertEquals(4096, response.getChunkBytesWritten());
                assertEquals(12288, response.getTotalBytesWritten());
            }
    
            @Test
            @DisplayName("Should return correct bytes consumed")
            void testReturnBytesConsumed() throws SMBProtocolDecodingException {
                byte[] buffer = new byte[100];
                byte[] responseData = createValidCopyChunkResponse(8, 16384, 131072);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/com/ServerDataTest.java

            assertEquals("SERVER2", serverList.get(1).oemDomainName);
        }
    
        /**
         * Test field types match expected types
         */
        @Test
        @DisplayName("Test field types are correct")
        public void testFieldTypes() throws NoSuchFieldException {
            // Verify field types
            assertEquals(byte.class, ServerData.class.getDeclaredField("sflags").getType());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/netbios/SocketInputStreamTest.java

            try {
                int read = sis.read(buffer, 0, 10);
    
                // Should read all 5 available bytes
                assertEquals(5, read);
    
                // Verify correct data
                for (int i = 0; i < 5; i++) {
                    assertEquals(i + 1, buffer[i]);
                }
    
                // Next read will try to read header and should fail
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  4. cmd/signature-v4.go

    	}
    	// Verify if sha256 payload query is same.
    	if clntHashedPayload != "" && clntHashedPayload != query.Get(xhttp.AmzContentSha256) {
    		return ErrContentSHA256Mismatch
    	}
    	// Verify if security token is correct.
    	if token != "" && subtle.ConstantTimeCompare([]byte(token), []byte(cred.SessionToken)) != 1 {
    		return ErrInvalidToken
    	}
    
    	// Verify finally if signature is same.
    
    	// Get canonical request.
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Dec 13 22:19:12 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/graph/AbstractNetworkTest.java

    import static org.junit.Assert.assertThrows;
    import static org.junit.Assert.assertTrue;
    import static org.junit.Assert.fail;
    
    import com.google.common.collect.ImmutableList;
    import com.google.common.collect.ImmutableSet;
    import com.google.common.collect.Sets;
    import java.util.Set;
    import java.util.concurrent.Callable;
    import java.util.concurrent.CyclicBarrier;
    import java.util.concurrent.ExecutorService;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 32.7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/SMB1SigningDigestTest.java

            int actualSeconds = SMBUtil.readInt4(dst, 0);
            assertEquals(expectedSeconds, actualSeconds);
    
            // Test when current time is in DST but test time is not
            when(mockTimeZone.inDaylightTime(any(Date.class))).thenReturn(true) // current time
                    .thenReturn(false); // test time
            SMB1SigningDigest.writeUTime(mockConfig, testTime, dst, 0);
    
            expectedSeconds = (int) ((testTime - 3600000) / 1000L);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  7. cmd/api-errors.go

    		Description:    "Error parsing the Credential/X-Amz-Credential parameter; incorrect service. This endpoint belongs to \"s3\".",
    		HTTPStatusCode: http.StatusBadRequest,
    	},
    	ErrInvalidServiceSTS: {
    		Code:           "AuthorizationParametersError",
    		Description:    "Error parsing the Credential parameter; incorrect service. This endpoint belongs to \"sts\".",
    		HTTPStatusCode: http.StatusBadRequest,
    	},
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Wed Apr 16 07:34:24 UTC 2025
    - 93K bytes
    - Viewed (1)
  8. CHANGELOG/CHANGELOG-1.17.md

    - Fix kubectl printer to correctly handle timestamps of events emitted using events.k8s.io API ([#90227](https://github.com/kubernetes/kubernetes/pull/90227), [@gosoon](https://github.com/gosoon)) [SIG CLI]
    Registered: Fri Sep 05 09:05:11 UTC 2025
    - Last Modified: Thu Jan 28 10:44:33 UTC 2021
    - 346.2K bytes
    - Viewed (1)
  9. src/test/java/jcifs/ntlmssp/av/AvPairsTest.java

            CIFSException exception = assertThrows(CIFSException.class, () -> {
                AvPairs.decode(avPairData);
            });
    
            assertEquals("Missing AvEOL", exception.getMessage(), "Should throw exception with correct message");
        }
    
        /**
         * Test decode with invalid EOL (non-zero length)
         */
        @Test
        @DisplayName("Decode should throw exception for invalid EOL length")
        void testDecodeInvalidEOL() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  10. misc/go_android_exec/main.go

    			return
    		}
    
    		// runtime.GOROOT is empty — perhaps go_android_exec was built with
    		// -trimpath and GOROOT is unset. Try 'go env GOROOT' as a fallback,
    		// assuming that the 'go' command in $PATH is the correct one.
    
    		cmd := exec.Command("go", "env", "GOROOT")
    		cmd.Stderr = os.Stderr
    		out, err := cmd.Output()
    		if err != nil {
    			gorootErr = fmt.Errorf("%v: %w", cmd, err)
    		}
    
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Mon Aug 21 17:46:57 UTC 2023
    - 15.3K bytes
    - Viewed (0)
Back to top