Search Options

Results per page
Sort
Preferred Languages
Advance

Results 431 - 440 of 1,620 for whence (0.04 sec)

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

            when(mockHandle.getFileId()).thenReturn(new byte[16]);
    
            when(mockTree.getReceiveBufferSize()).thenReturn(0x10000);
            when(mockTree.getMaximumBufferSize()).thenReturn(0x10000);
            when(mockTree.getConfig()).thenReturn(mockConfig);
            when(mockTree.isConnected()).thenReturn(true);
            when(mockTree.getTreeId()).thenReturn(1L);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/ntlmssp/Type1MessageTest.java

            lenient().when(mockContext.getConfig()).thenReturn(mockConfig);
            lenient().when(mockContext.getNameServiceClient()).thenReturn(mockNameServiceClient);
            lenient().when(mockNameServiceClient.getLocalHost()).thenReturn(mockLocalHost);
            lenient().when(mockLocalHost.getHostName()).thenReturn("localhost");
            lenient().when(mockConfig.getDefaultDomain()).thenReturn("WORKGROUP");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/util/transport/RequestTest.java

            // Test case for isCancel method when it returns true
            when(mockRequest.isCancel()).thenReturn(true);
    
            assertTrue(mockRequest.isCancel(), "isCancel should return true when mocked to do so.");
            verify(mockRequest, times(1)).isCancel();
        }
    
        @Test
        void testIsCancelFalse() {
            // Test case for isCancel method when it returns false
            when(mockRequest.isCancel()).thenReturn(false);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/lease/DirectoryLeasingIntegrationTest.java

            when(mockFile1.lastAccess()).thenReturn(System.currentTimeMillis() - 1800000);
    
            when(mockFile2.getName()).thenReturn("subfolder");
            when(mockFile2.length()).thenReturn(0L);
            when(mockFile2.lastModified()).thenReturn(System.currentTimeMillis() - 1800000);
            when(mockFile2.isDirectory()).thenReturn(true);
            when(mockFile2.getAttributes()).thenReturn(0x10); // FILE_ATTRIBUTE_DIRECTORY
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/context/CIFSContextCredentialWrapperTest.java

        void testRenewCredentials_NtlmAuthenticatorReturnsNull() {
            try (MockedStatic<NtlmAuthenticator> mockedNtlmAuthenticator = mockStatic(NtlmAuthenticator.class)) {
                mockedNtlmAuthenticator.when(NtlmAuthenticator::getDefault).thenReturn(mockNtlmAuthenticator);
                mockedNtlmAuthenticator.when(
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SmbExceptionTest.java

        @Test
        @DisplayName("Should create SmbException with NT status code")
        void testSmbExceptionWithNTStatus() {
            // Given
            int ntStatus = NtStatus.NT_STATUS_ACCESS_DENIED;
    
            // When
            SmbException exception = new SmbException(ntStatus, false);
    
            // Then
            assertNotNull(exception);
            assertEquals(ntStatus, exception.getNtStatus());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/util/HexdumpTest.java

            // When
            String result = Hexdump.toHexString(data);
    
            // Then
            assertNotNull(result);
            assertEquals("000FFF7F80", result);
        }
    
        @Test
        @DisplayName("Should handle empty byte array")
        void testToHexStringEmpty() {
            // Given
            byte[] data = {};
    
            // When
            String result = Hexdump.toHexString(data);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/Smb3KeyDerivationTest.java

        }
    
        @Test
        @DisplayName("Should derive signing key for SMB 3.0.0 dialect")
        void testDeriveSigningKey_SMB300() {
            // Given
            int dialect = Smb2Constants.SMB2_DIALECT_0300;
    
            // When
            byte[] signingKey = Smb3KeyDerivation.deriveSigningKey(dialect, sessionKey, preauthIntegrity);
    
            // Then
            assertNotNull(signingKey, "Signing key should not be null");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/Smb2TransformHeaderTest.java

            new SecureRandom().nextBytes(signature);
    
            // When
            transformHeader.setSignature(signature);
    
            // Then
            assertArrayEquals(signature, transformHeader.getSignature());
        }
    
        @Test
        @DisplayName("Should set and get nonce")
        void testNonce() {
            // When
            transformHeader.setNonce(testNonce);
    
            // Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

       * instances that are unequal.
       *
       * <p>Calling {@code setDistinctValues(type, v1, v2)} also sets the default value for {@code type}
       * that's used for {@link #testNulls}.
       *
       * <p>Only necessary for types where {@link ClassSanityTester} doesn't already know how to create
       * distinct values.
       *
       * @return this tester instance
       * @since 17.0
       */
      @CanIgnoreReturnValue
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 32.5K bytes
    - Viewed (0)
Back to top