Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 207 for testUser (0.06 sec)

  1. src/test/java/org/codelibs/fess/helper/CurlHelperTest.java

            SSLSocketFactory sslSocketFactory = getSSLSocketFactory(curlHelper);
            assertNull(sslSocketFactory);
        }
    
        public void test_request_withBasicAuth() {
            setupMockConfig("localhost:9200", "testuser", "testpass");
    
            curlHelper.init();
    
            CurlRequest request = new CurlRequest(Curl.Method.GET, "http://localhost:9200/test");
            CurlRequest processedRequest = callProtectedRequest(curlHelper, request);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 05:35:01 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/sso/SsoManagerTest.java

        }
    
        public void test_getLoginCredential_withValidAuthenticator() {
            currentSsoType = "test";
            final LoginCredential expectedCredential = new TestLoginCredential("testuser");
            testAuthenticator.setLoginCredential(expectedCredential);
    
            ssoManager = new SsoManager() {
                @Override
                protected String getSsoType() {
                    return currentSsoType;
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 13.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/http/NtlmHttpServletRequestTest.java

         * Verifies that the method returns the name of the principal.
         */
        @Test
        void testGetRemoteUser() {
            // Arrange: Define the expected user name from the principal
            String expectedUserName = "testUser";
            when(mockPrincipal.getName()).thenReturn(expectedUserName);
    
            // Act: Call the method under test
            String actualUserName = ntlmRequest.getRemoteUser();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbOperationExceptionTest.java

            exception.withContext("path", "/share/file.txt").withContext("user", "testuser");
    
            // Then
            Map<String, Object> context = exception.getContext();
            assertEquals("server.example.com", context.get("host"));
            assertEquals(445, context.get("port"));
            assertEquals("/share/file.txt", context.get("path"));
            assertEquals("testuser", context.get("user"));
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/smb1/NtlmContextTest.java

    @ExtendWith(MockitoExtension.class)
    class NtlmContextTest {
    
        @Mock
        private NtlmPasswordAuthentication mockAuth;
    
        private final String domain = "TEST_DOMAIN";
        private final String username = "testUser";
        private final String password = "testPassword";
        private final String workstation = "TEST_WORKSTATION";
    
        @BeforeEach
        void setUp() {
            // MockitoExtension handles mock initialization
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/config/DelegatingConfigurationTest.java

            when(mockDelegate.getNetbiosHostname()).thenReturn("TESTHOST");
            when(mockDelegate.getDefaultDomain()).thenReturn("WORKGROUP");
            when(mockDelegate.getDefaultUsername()).thenReturn("testuser");
            when(mockDelegate.getDefaultPassword()).thenReturn("testpass");
            when(mockDelegate.getNativeLanman()).thenReturn("jCIFS");
    
            // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.7K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb1/smb1/SmbSessionTest.java

        private MockedStatic<SmbTransport> smbtStatic;
    
        @BeforeEach
        void setUp() throws Exception {
            // Create a real NtlmPasswordAuthentication instance
            auth = new NtlmPasswordAuthentication("TESTDOMAIN", "testuser", "testpass");
    
            // Initialize ServerData to avoid NullPointerException
            SmbTransport.ServerData serverData = transport.new ServerData();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/util/AuthenticationRateLimiterTest.java

            assertTrue(rateLimiter.checkAttempt("user1", "192.168.1.1"), "After success should be allowed");
        }
    
        @Test
        public void testAccountLockout() throws Exception {
            String username = "testuser";
            String ip = "192.168.1.2";
    
            // First attempts should be allowed
            assertTrue(rateLimiter.checkAttempt(username, ip));
            rateLimiter.recordFailure(username, ip);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/pac/PacLogonInfoTest.java

     * Tests the parsing and data extraction from PAC Logon Info structures.
     */
    class PacLogonInfoTest {
    
        private static final long TEST_FILETIME = 130640000000000000L;
        private static final String TEST_USERNAME = "testuser";
        private static final String TEST_DOMAIN = "TESTDOMAIN";
        private static final String TEST_SERVER = "SERVER01";
    
        private SID domainSid;
        private SID userSid;
    
        @BeforeEach
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  10. src/test/java/jcifs/context/BaseContextTest.java

        void testConstructorWithCredentials() throws CIFSException {
            // Given
            Configuration configWithCreds = mock(Configuration.class);
            when(configWithCreds.getDefaultUsername()).thenReturn("testuser");
            when(configWithCreds.getDefaultPassword()).thenReturn("testpass");
            when(configWithCreds.getDefaultDomain()).thenReturn("TESTDOMAIN");
            when(configWithCreds.getBufferCacheSize()).thenReturn(16);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 15.1K bytes
    - Viewed (0)
Back to top