Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 386 for getIdx (0.07 seconds)

  1. src/test/java/jcifs/util/HMACT64Test.java

        @Mock
        private MessageDigest mockMd5;
    
        @BeforeEach
        void setUp() throws NoSuchAlgorithmException {
            // Mock Crypto.getMD5() to return our mockMd5 instance
            // This requires Mockito 3.4.0+ for MockedStatic
            // For simplicity, we'll assume Crypto.getMD5() is static and mock it.
            // If it's not static, we'd need to inject it or mock the class that provides it.
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 14.6K bytes
    - Click Count (0)
  2. compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/StringVisitorModelInterpolator.java

                }
            }
    
            private void visit(Activation activation) {
                if (activation != null) {
                    String org, val;
                    // Jdk
                    org = activation.getJdk();
                    val = interpolate(org);
                    if (org != val) {
                        activation.setJdk(val);
                    }
                    // OS
                    visit(activation.getOs());
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Feb 25 08:27:34 GMT 2025
    - 43.1K bytes
    - Click Count (0)
  3. compat/maven-model-builder/src/main/java/org/apache/maven/model/validation/DefaultModelValidator.java

                    if (!minProfileIds.add(profile.getId())) {
                        addViolation(
                                problems,
                                Severity.WARNING,
                                Version.BASE,
                                "profiles.profile.id",
                                null,
                                "Duplicate activation for profile " + profile.getId(),
                                profile);
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Sep 03 15:06:05 GMT 2025
    - 66.8K bytes
    - Click Count (0)
  4. tests/test_security_scopes.py

    @pytest.fixture(name="app")
    def app_fixture(call_counter: dict[str, int]):
        def get_db():
            call_counter["count"] += 1
            return f"db_{call_counter['count']}"
    
        def get_user(db: Annotated[str, Depends(get_db)]):
            return "user"
    
        app = FastAPI()
    
        @app.get("/")
        def endpoint(
            db: Annotated[str, Depends(get_db)],
            user: Annotated[str, Security(get_user, scopes=["read"])],
        ):
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 1006 bytes
    - Click Count (0)
  5. compat/maven-settings-builder/src/main/java/org/apache/maven/settings/crypto/DefaultSettingsDecrypter.java

                                    "Pre-Maven 4 legacy encrypted password detected for server " + server.getId()
                                            + " - configure password encryption with the help of mvnenc to be compatible with Maven 4.",
                                    Severity.WARNING,
                                    "server: " + server.getId(),
                                    -1,
                                    -1,
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Sat Nov 16 13:55:43 GMT 2024
    - 6K bytes
    - Click Count (0)
  6. compat/maven-settings-builder/src/main/java/org/apache/maven/settings/validation/DefaultSettingsValidator.java

                    if (!serverIds.add(server.getId())) {
                        addViolation(
                                problems,
                                Severity.WARNING,
                                "servers.server.id",
                                null,
                                "must be unique but found duplicate server with id " + server.getId());
                    }
                }
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Jul 23 17:27:08 GMT 2025
    - 10.6K bytes
    - Click Count (0)
  7. tests/test_tutorial/test_dependencies/test_tutorial010.py

    from fastapi import Depends, FastAPI
    from fastapi.testclient import TestClient
    
    from docs_src.dependencies.tutorial010_py39 import get_db
    
    
    def test_get_db():
        app = FastAPI()
    
        @app.get("/")
        def read_root(c: Annotated[Any, Depends(get_db)]):
            return {"c": str(c)}
    
        client = TestClient(app)
    
        dbsession_mock = Mock()
    
        with patch(
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 10:43:02 GMT 2025
    - 688 bytes
    - Click Count (0)
  8. src/test/java/jcifs/pac/PacSidAttributesTest.java

            assertEquals(sidMock, pacSidAttributes.getId(), "The SID should match the one provided in the constructor.");
            assertEquals(attributes, pacSidAttributes.getAttributes(), "The attributes should match the ones provided in the constructor.");
        }
    
        /**
         * Test method for {@link jcifs.pac.PacSidAttributes#getId()}.
         */
        @Test
        void testGetId() {
            // Test the getId method
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 1.6K bytes
    - Click Count (0)
  9. tests/test_tutorial/test_dependencies/test_tutorial007.py

    import asyncio
    from contextlib import asynccontextmanager
    from unittest.mock import Mock, patch
    
    from docs_src.dependencies.tutorial007_py39 import get_db
    
    
    def test_get_db():  # Just for coverage
        async def test_async_gen():
            cm = asynccontextmanager(get_db)
            async with cm() as db_session:
                return db_session
    
        dbsession_moock = Mock()
    
        with patch(
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 10:43:02 GMT 2025
    - 642 bytes
    - Click Count (0)
  10. impl/maven-core/src/test/java/org/apache/maven/lifecycle/DefaultLifecyclesTest.java

                    new DefaultLookup(mockedPlexusContainer));
    
            assertEquals("clean", dl.getLifeCycles().get(0).getId());
            assertEquals("default", dl.getLifeCycles().get(1).getId());
            assertEquals("site", dl.getLifeCycles().get(2).getId());
            assertEquals("etl", dl.getLifeCycles().get(3).getId());
        }
    
        private Lifecycle getLifeCycleById(String id) {
            return defaultLifeCycles.getLifeCycles().stream()
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Sep 17 10:01:14 GMT 2025
    - 3.9K bytes
    - Click Count (0)
Back to Top