- Sort Score
- Num 10 results
- Language All
Results 151 - 160 of 256 for thenReturn (0.08 seconds)
-
src/test/java/jcifs/pac/kerberos/KerberosRelevantAuthDataTest.java
mockedStaticAuthData.when(() -> KerberosAuthData.parse(eq(1), eq(new byte[] { 0x01 }), any(Map.class))) .thenReturn(Collections.singletonList(mockAuthData1)); mockedStaticAuthData.when(() -> KerberosAuthData.parse(eq(2), eq(new byte[] { 0x02 }), any(Map.class))) .thenReturn(Collections.singletonList(mockAuthData2)); // Construct a token with two authorization entries
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9K bytes - Click Count (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/PluginUpgradeStrategyTest.java
void shouldBeApplicableWhenPluginsOptionTrue() { UpgradeOptions options = mock(UpgradeOptions.class); when(options.plugins()).thenReturn(Optional.of(true)); when(options.all()).thenReturn(Optional.empty()); UpgradeContext context = createMockContext(options);
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Nov 18 18:03:26 GMT 2025 - 27.8K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/Smb2EchoResponseTest.java
echoResponse.setDigest(mockDigest); setStatus(echoResponse, NtStatus.NT_STATUS_SUCCESS); when(mockConfig.isRequireSecureNegotiate()).thenReturn(true); when(mockDigest.verify(buffer, 0, 100, 0, echoResponse)).thenReturn(false); boolean result = echoResponse.verifySignature(buffer, 0, 100); assertTrue(result); assertFalse(echoResponse.isVerifyFailed());
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.1K bytes - Click Count (0) -
src/test/java/jcifs/smb/NtlmUtilTest.java
void testGetPreNTLMResponse_basicAndInteractions() throws Exception { // Arrange when(cifsContext.getConfig()).thenReturn(configuration); when(configuration.getOemEncoding()).thenReturn("Cp850"); String password14 = "ABCDEFGHIJKLMN"; // 14 chars String password15 = "ABCDEFGHIJKLMNO"; // 15 chars, same first 14
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 12K bytes - Click Count (1) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/CheckTest.java
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Sat Jun 07 06:22:47 GMT 2025 - 4.9K bytes - Click Count (0) -
src/test/java/jcifs/smb/DirFileEntryEnumIteratorBaseTest.java
void nameFilterAccepts(String acceptedName) throws Exception { // Arrange stubAcquireReturnsSelf(); when(nameFilter.accept(any(), any())).thenReturn(false); when(nameFilter.accept(parent, acceptedName)).thenReturn(true); FileEntry initial = entry("first"); FileEntry[] page1 = new FileEntry[] { entry("."), entry(".."), entry("rejected"), entry(acceptedName) };
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 14.5K bytes - Click Count (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/ModelUpgradeStrategyTest.java
// Create context with --model-version=4.1.0 option to trigger namespace update UpgradeOptions options = mock(UpgradeOptions.class); when(options.modelVersion()).thenReturn(Optional.of("4.1.0")); when(options.all()).thenReturn(Optional.empty()); UpgradeContext context = createMockContext(options); UpgradeResult result = strategy.doApply(context, pomMap);Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Nov 18 18:03:26 GMT 2025 - 38.8K bytes - Click Count (0) -
src/test/java/jcifs/netbios/NameServicePacketTest.java
packet.questionType = NameServicePacket.NB; packet.questionClass = NameServicePacket.IN; when(mockQuestionName.writeWireFormat(any(byte[].class), anyInt())).thenReturn(10); // Mock name length int written = packet.writeQuestionSectionWireFormat(dst, 0); assertEquals(14, written); // 10 (name) + 2 (type) + 2 (class) verify(mockQuestionName).writeWireFormat(dst, 0);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 17.9K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2FindFirst2Test.java
MockitoAnnotations.openMocks(this); when(mockConfig.getMaximumBufferSize()).thenReturn(65535); when(mockConfig.getTransactionBufferSize()).thenReturn(65535); when(mockConfig.isUseUnicode()).thenReturn(true); when(mockConfig.isForceUnicode()).thenReturn(false); when(mockConfig.getOemEncoding()).thenReturn("ASCII"); } @Test @DisplayName("Test constructor with standard path")
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 10.8K bytes - Click Count (0) -
src/test/java/jcifs/smb/Kerb5AuthenticatorTest.java
void createContext_forceFallback_triggersNtlmAndFailsOnNonNtlmToken() throws CIFSException { when(tc.getConfig()).thenReturn(config); when(config.isAllowNTLMFallback()).thenReturn(true); when(config.isUseRawNTLM()).thenReturn(false); // Enable NTLM fallback by providing NTLM creds in constructor
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 10.9K bytes - Click Count (0)