Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 170 of 270 for thenReturn (0.04 sec)

  1. 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
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9K bytes
    - Viewed (0)
  2. 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) };
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  3. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/witness/WitnessIntegrationTest.java

            lenient().when(mockContext.getConfig()).thenReturn(mockConfig);
            lenient().when(mockConfig.isUseWitness()).thenReturn(true);
            lenient().when(mockConfig.getWitnessHeartbeatTimeout()).thenReturn(120000L);
            lenient().when(mockConfig.getWitnessRegistrationTimeout()).thenReturn(300000L);
            lenient().when(mockConfig.getWitnessReconnectDelay()).thenReturn(1000L);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbResourceLocatorInternalTest.java

        @ValueSource(booleans = { true, false })
        @DisplayName("shouldForceSigning returns stubbed boolean value")
        void shouldForceSigningReturns(boolean expected) {
            when(locator.shouldForceSigning()).thenReturn(expected);
    
            boolean result = locator.shouldForceSigning();
    
            assertEquals(expected, result);
            verify(locator, times(1)).shouldForceSigning();
            verifyNoMoreInteractions(locator);
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  6. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/ConsoleIconTest.java

        @DisplayName("should return Unicode icons when terminal supports UTF-8")
        void shouldReturnUnicodeWhenTerminalSupportsUtf8() {
            Terminal mockTerminal = mock(Terminal.class);
            when(mockTerminal.encoding()).thenReturn(StandardCharsets.UTF_8);
    
            assertEquals("✓", ConsoleIcon.SUCCESS.getIcon(mockTerminal));
            assertEquals("✗", ConsoleIcon.ERROR.getIcon(mockTerminal));
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Jul 15 09:35:08 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  7. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/CheckTest.java

                    // Update context to use the temp directory
                    when(context.invokerRequest.cwd()).thenReturn(tempDir);
    
                    // Mock successful strategy execution
                    when(mockOrchestrator.executeStrategies(Mockito.any(), Mockito.any()))
                            .thenReturn(UpgradeResult.empty());
    
                    checkGoal.execute(context);
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Sat Jun 07 06:22:47 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  8. 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);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.9K bytes
    - Viewed (0)
  9. fess-crawler/src/test/java/org/codelibs/fess/crawler/service/impl/UrlFilterServiceImplTest.java

            mockExcludePatterns.add(Pattern.compile("https://example.com/secret/.*"));
    
            when(dataHelper.getIncludeUrlPatternList(sessionId)).thenReturn(mockIncludePatterns);
            when(dataHelper.getExcludeUrlPatternList(sessionId)).thenReturn(mockExcludePatterns);
    
            // Execute retrieval
            List<Pattern> includePatterns = service.getIncludeUrlPatternList(sessionId);
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Nov 13 13:29:22 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  10. 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
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
Back to top