- Sort Score
- Result 10 results
- Languages All
Results 221 - 230 of 2,806 for When (0.02 sec)
-
src/test/java/jcifs/dcerpc/msrpc/srvsvcTest.java
// Set the deferred field directly since it's a public field, not a method mockNdrBuffer.deferred = mockDeferredBuffer; lenient().when(mockNdrBuffer.derive(anyInt())).thenReturn(mockDeferredBuffer); lenient().when(mockDeferredBuffer.derive(anyInt())).thenReturn(mockDeferredBuffer); } @Test void testGetSyntax() { String syntax = srvsvc.getSyntax();
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12K bytes - Viewed (0) -
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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.4K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/SamrAliasHandleTest.java
doAnswer(invocation -> { MsrpcSamrOpenAlias rpc = invocation.getArgument(0); rpc.retval = 0; // Simulate success return null; }).when(mockDcerpcHandle).sendrecv(any(MsrpcSamrOpenAlias.class)); // Act SamrAliasHandle aliasHandle = new SamrAliasHandle(mockDcerpcHandle, mockSamrDomainHandle, access, rid); // Assert
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.2K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/NtlmChallengeTest.java
void testToStringWithNullChallengeThrowsNPE() { UniAddress dc = mock(UniAddress.class); when(dc.toString()).thenReturn("ANYSERVER"); NtlmChallenge nc = new NtlmChallenge(null, dc); // Hexdump.toHexString will throw NPE when accessing challenge.length assertThrows(NullPointerException.class, nc::toString); } @Test
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6K bytes - Viewed (0) -
src/test/java/jcifs/http/NtlmSspTest.java
lenient().when(mockCifsContext.getConfig()).thenReturn(mockConfig); lenient().when(mockConfig.getDefaultDomain()).thenReturn("DOMAIN"); lenient().when(mockConfig.isUseUnicode()).thenReturn(true); // Mock NameServiceClient for Type1Message test lenient().when(mockCifsContext.getNameServiceClient()).thenReturn(mockNameServiceClient);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 11.4K bytes - Viewed (1) -
src/test/java/jcifs/smb1/smb1/SmbComSessionSetupAndXTest.java
mockAuth.domain = "TESTDOMAIN"; mockAuth.password = "testpass"; when(mockAuth.getAnsiHash(any(byte[].class))).thenReturn(new byte[24]); when(mockAuth.getUnicodeHash(any(byte[].class))).thenReturn(new byte[24]); when(mockAuth.getName()).thenReturn("testuser"); when(mockAuth.getDomain()).thenReturn("TESTDOMAIN");
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.5K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NbtAddressTest.java
NetbiosAddress mockNetbiosAddress20 = mock(NetbiosAddress.class); when(mockNetbiosAddress20.getNameType()).thenReturn(0x20); when(mockNetbiosAddress20.getHostName()).thenReturn("ACTUAL_SERVER_NAME"); NetbiosAddress[] nodeStatusResponse = { mock(NetbiosAddress.class), mockNetbiosAddress20 }; when(mockNameServiceClient.getNodeStatus(nbtAddress)).thenReturn(nodeStatusResponse);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.4K bytes - Viewed (0) -
build-logic/binary-compatibility/src/test/groovy/gradlebuild/binarycompatibility/AcceptedApiChangesTest.groovy
"acceptation": "I really want to do this" } ] } """]) then: changes.acceptedChanges.size() == 2 } def "parses more than one change from different files"() { when: def changes = AcceptedApiChanges.parse([""" { "acceptedApiChanges": [ {
Registered: Wed Dec 31 11:36:14 UTC 2025 - Last Modified: Tue Jun 04 14:00:46 UTC 2024 - 3.8K bytes - Viewed (0) -
cmd/batch-replicate_test.go
source: type: minio # valid values are "s3" or "minio" bucket: mytest prefix: object-prefix1 # 'PREFIX' is optional # If your source is the 'local' alias specified to 'mc batch start', then the 'endpoint' and 'credentials' fields are optional and can be omitted # Either the 'source' or 'remote' *must* be the "local" deployment # endpoint: "http://127.0.0.1:9000"Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Thu Aug 01 12:53:30 UTC 2024 - 7.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/SMBSigningDigestTest.java
import static org.mockito.ArgumentMatchers.anyInt; import static org.mockito.ArgumentMatchers.eq; import static org.mockito.Mockito.times; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import org.junit.jupiter.params.ParameterizedTest;
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.9K bytes - Viewed (0)