- Sort Score
- Result 10 results
- Languages All
Results 1171 - 1180 of 2,681 for Then (0.02 sec)
-
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/internal/smb1/com/SmbComSessionSetupAndXTest.java
@BeforeEach void setup() { when(mockContext.getConfig()).thenReturn(mockConfig); when(mockNegotiate.getServerData()).thenReturn(new ServerDataStub()); } private void setupNegotiateStubs() { when(mockNegotiate.getNegotiatedCapabilities()).thenReturn(0x00123456); when(mockNegotiate.getNegotiatedSendBufferSize()).thenReturn(65535); when(mockNegotiate.getNegotiatedMpxCount()).thenReturn(65535);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/Smb2IoctlRequestTest.java
@BeforeEach void setUp() { Arrays.fill(TEST_FILE_ID, (byte) 0x42); } private void setupMockConfig() { when(mockConfig.getTransactionBufferSize()).thenReturn(65536); } private void setupMockContext() { when(mockContext.getConfig()).thenReturn(mockConfig); } @Test @DisplayName("Test constructor with config and control code")Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoRequestTest.java
@BeforeEach void setUp() { mockConfig = mock(Configuration.class); mockContext = mock(CIFSContext.class); when(mockContext.getConfig()).thenReturn(mockConfig); when(mockConfig.getMaximumBufferSize()).thenReturn(65536); when(mockConfig.getListSize()).thenReturn(65536); testFileId = new byte[16]; for (int i = 0; i < 16; i++) { testFileId[i] = (byte) i;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 22.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileInformationTest.java
FileInformation internalInfo = mock(FileInformation.class); // Set different levels when(basicInfo.getFileInformationLevel()).thenReturn(FileInformation.FILE_BASIC_INFO); when(standardInfo.getFileInformationLevel()).thenReturn(FileInformation.FILE_STANDARD_INFO); when(internalInfo.getFileInformationLevel()).thenReturn(FileInformation.FILE_INTERNAL_INFO); // Verify each has correct level
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/service/impl/UrlQueueServiceImplTest.java
List<UrlQueueImpl<Long>> newUrlList = new ArrayList<>(); newUrlList.add(newUrl1); newUrlList.add(newUrl2); when(dataHelper.getUrlQueueList(sessionId)).thenReturn(existingQueue); when(dataHelper.getAccessResultMap(sessionId)).thenReturn(accessResultMap); // Execute service.offerAll(sessionId, newUrlList); // VerifyRegistered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Thu Nov 13 13:29:22 UTC 2025 - 14.1K bytes - Viewed (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/InferenceStrategyTest.java
} @Test @DisplayName("should be applicable when --all option is specified") void shouldBeApplicableWhenAllOptionSpecified() { UpgradeOptions options = mock(UpgradeOptions.class); when(options.all()).thenReturn(Optional.of(true)); when(options.infer()).thenReturn(Optional.empty());Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Tue Nov 18 18:03:26 UTC 2025 - 35.2K bytes - Viewed (0) -
impl/maven-core/src/test/java/org/apache/maven/project/DefaultProjectBuilderTest.java
assertEquals( "com.example:test-project:jar:1.0.0", projectId, "Should extract project ID from rawModel when effectiveModel is null"); } /** * Test extractProjectId with fileModel fallback when both effectiveModel and rawModel are null. */ @Test void testExtractProjectIdFileModelFallback() throws Exception { Method extractProjectIdMethod =
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Tue Nov 18 17:20:31 UTC 2025 - 7.5K bytes - Viewed (0) -
cmd/metrics-v3-cluster-iam.go
pluginAuthnServiceFailedRequestsMinuteMD = NewCounterMD(pluginAuthnServiceFailedRequestsMinute, "When plugin authentication is configured, returns failed requests count in the last full minute") pluginAuthnServiceLastFailSecondsMD = NewCounterMD(pluginAuthnServiceLastFailSeconds, "When plugin authentication is configured, returns time (in seconds) since the last failed request to the service")
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Thu May 02 08:20:42 UTC 2024 - 4.5K bytes - Viewed (0)