Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 64 for Eq (0.95 sec)

  1. src/test/java/jcifs/context/CIFSContextCredentialWrapperTest.java

                mockedNtlmAuthenticator.when(NtlmAuthenticator::getDefault).thenReturn(mockNtlmAuthenticator);
                mockedNtlmAuthenticator.when(() -> NtlmAuthenticator.requestNtlmPasswordAuthentication(eq(mockNtlmAuthenticator),
                        eq("locationHint"), eq((SmbAuthException) null))).thenReturn(mockNtlmPasswordAuthenticator);
    
                // Perform the renewal
                boolean renewed = wrapper.renewCredentials("locationHint", null);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  2. cmd/postpolicyform_test.go

    			success: false,
    		},
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SmbTreeHandleImplTest.java

            when(treeConnection.send(eq(resourceLoc), eq(request), eq(response), any(RequestParam[].class))).thenReturn(response);
    
            CommonServerMessageBlockResponse out = handle.send(request, response, RequestParam.NO_RETRY);
            assertSame(response, out);
            verify(treeConnection).send(eq(resourceLoc), eq(request), eq(response), any(RequestParam[].class));
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbFileHandleImplTest.java

            SmbFileHandleImpl hA = id1 != null ? new SmbFileHandleImpl(cfg, id1, tA, "//eq/a", 0, 0, 0, 0, 0L)
                    : new SmbFileHandleImpl(cfg, 33, tA, "//eq/a", 0, 0, 0, 0, 0L);
    
            SmbFileHandleImpl hB = id2 != null ? new SmbFileHandleImpl(cfg, id2, tB, "//eq/b", 0, 0, 0, 0, 0L)
                    : new SmbFileHandleImpl(cfg, 33, tB, "//eq/b", 0, 0, 0, 0, 0L);
    
            if (expectEqual) {
                assertEquals(hA, hB);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbTransportInternalTest.java

            doThrow(new jcifs.CIFSException("invalid dfs name")).when(transport)
                    .getDfsReferrals(eq(ctx), eq(emptyName), any(), any(), anyInt());
    
            assertThrows(jcifs.CIFSException.class, () -> transport.getDfsReferrals(ctx, emptyName, "h", "d", 1));
            verify(transport).getDfsReferrals(eq(ctx), eq(emptyName), eq("h"), eq("d"), eq(1));
        }
    
        // Edge case: test with null name
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SmbTransportPoolImplTest.java

            when(internal.getSmbSession(eq(ctx), eq("server.test"), isNull())).thenReturn(session);
            when(session.unwrap(SmbSessionInternal.class)).thenReturn(session);
            when(session.getSmbTree(eq("IPC$"), isNull())).thenReturn(tree);
            when(tree.unwrap(SmbTreeInternal.class)).thenReturn(tree);
    
            doReturn(mockTransport).when(poolSpy).getSmbTransport(eq(ctx), eq(address), anyInt(), eq(false), anyBoolean());
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 19.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/SidResolverTest.java

            assertDoesNotThrow(() -> sidResolver.resolveSids(mockContext, testServerName, testSids, 0, 3));
        }
    
        @Test
        void testResolveSidsWithOffsetAndLength_SingleElement() throws CIFSException {
            doNothing().when(sidResolver).resolveSids(any(CIFSContext.class), anyString(), any(SID[].class), eq(2), eq(1));
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 15.5K bytes
    - Viewed (0)
  8. cmd/post-policy_test.go

    			policy:             `{"expiration": "%s","conditions":[["eq", "$bucket", "` + bucketName + `"], ["starts-with", "$key", "test/"], ["eq", "$x-amz-algorithm", "AWS4-HMAC-SHA256"], ["eq", "$x-amz-date", "%s"], ["eq", "$x-amz-credential", "` + credentials.AccessKey + `/%s/us-east-1/s3/aws4_request"],["eq", "$x-amz-meta-uuid", "1234"],["eq", "$content-encoding", "gzip"]]}`,
    		},
    		// Success case, no multipart filename.
    		{
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 30.6K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/Kerb5ContextTest.java

            byte[] mic = new byte[] { 3 };
            // No exception means success
            doNothing().when(gssContext).verifyMIC(eq(mic), eq(0), eq(1), eq(data), eq(0), eq(2), any());
    
            assertDoesNotThrow(() -> ctx.verifyMIC(data, mic));
            verify(gssContext, times(1)).verifyMIC(eq(mic), eq(0), eq(1), eq(data), eq(0), eq(2), any());
        }
    
        @Test
        @DisplayName("verifyMIC wraps GSSException into CIFSException")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SIDTest.java

                jcifs.SID member = new SID("S-1-5-21-1000");
                jcifs.SID[] expected = new jcifs.SID[] { member };
                when(mockResolver.getGroupMemberSids(eq(mockCtx), eq("srv"), any(jcifs.SID.class), eq(512), eq(123))).thenReturn(expected);
    
                // Act
                jcifs.SID[] res = group.getGroupMemberSids("srv", mockCtx, 123);
    
                // Assert
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
Back to top