Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 696 for Inject (0.07 sec)

  1. apache-maven/pom.xml

          <groupId>org.jline</groupId>
          <artifactId>jline-terminal-ffm</artifactId>
        </dependency>
    
        <!-- (legacy) DI annotations -->
        <dependency>
          <groupId>javax.inject</groupId>
          <artifactId>javax.inject</artifactId>
        </dependency>
        <dependency>
          <groupId>javax.annotation</groupId>
          <artifactId>javax.annotation-api</artifactId>
        </dependency>
    
        <!-- DI Runtime -->
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Sat Sep 06 21:30:13 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/dcerpc/msrpc/MsrpcShareEnumTest.java

            srvsvc.ShareInfoCtr1 shareInfoCtr1 = new srvsvc.ShareInfoCtr1();
            shareInfoCtr1.count = 2;
            shareInfoCtr1.array = new srvsvc.ShareInfo1[] { shareInfo1, shareInfo2 };
    
            // Inject the ShareInfoCtr1 using reflection
            Field infoField = srvsvc.ShareEnumAll.class.getDeclaredField("info");
            infoField.setAccessible(true);
            infoField.set(msrpcShareEnum, shareInfoCtr1);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/dcerpc/DcerpcPipeHandleTest.java

            DcerpcPipeHandle handle = mock(DcerpcPipeHandle.class);
    
            // Inject the binding using reflection
            Field bindingField = DcerpcHandle.class.getDeclaredField("binding");
            bindingField.setAccessible(true);
            bindingField.set(handle, mockDcerpcBinding);
    
            // Inject the CIFSContext using reflection
            Field tcField = DcerpcHandle.class.getDeclaredField("transportContext");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/smb1/TransTransactNamedPipeResponseTest.java

            // Setup the mock pipe and its input stream
            mockPipe.pipeIn = mockPipeIn;
            // The 'lock' field in TransactNamedPipeInputStream needs to be a real object for synchronization
            mockPipeIn.lock = new Object();
    
            byte[] buffer = new byte[10];
            int bufferIndex = 0;
            int len = 10;
    
            // Call the method to be tested
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/security/get-current-user.md

    `get_current_user` will use a (fake) utility function we created, that takes a token as a `str` and returns our Pydantic `User` model:
    
    {* ../../docs_src/security/tutorial002_an_py310.py hl[19:22,26:27] *}
    
    ## Inject the current user { #inject-the-current-user }
    
    So now we can use the same `Depends` with our `get_current_user` in the *path operation*:
    
    {* ../../docs_src/security/tutorial002_an_py310.py hl[31] *}
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/witness/WitnessClientTest.java

                super(witnessServer, context, rpcClient);
            }
    
            // TestWitnessClient can use the parent implementation now since we inject the mock RPC client
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  7. cmd/os-instrumented.go

    	osMetricStat
    	osMetricAccess
    	osMetricCreate
    	osMetricReadDirent
    	osMetricFdatasync
    	osMetricSync
    
    	// .... add more
    
    	osMetricLast
    )
    
    var globalOSMetrics osMetrics
    
    func init() {
    	// Inject metrics.
    	ioutilx.OsOpenFile = OpenFile
    	ioutilx.OpenFileDirectIO = OpenFileDirectIO
    	ioutilx.OsOpen = Open
    }
    
    type osMetrics struct {
    	// All fields must be accessed atomically and aligned.
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  8. src/test/java/jcifs/util/HMACT64Test.java

            // 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.
            try (MockedStatic<Crypto> mockedCrypto = mockStatic(Crypto.class)) {
                mockedCrypto.when(Crypto::getMD5).thenReturn(mockMd5);
            }
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.6K bytes
    - Viewed (0)
  9. src/test/java/jcifs/http/NtlmServletTest.java

                transportContextField.setAccessible(true);
                transportContextField.set(ntlmServlet, cifsContext);
            } catch (Exception e) {
                throw new RuntimeException("Failed to inject mock CIFSContext", e);
            }
    
            when(cifsContext.getTransportPool()).thenReturn(transportPool);
            when(cifsContext.getNameServiceClient()).thenReturn(nameServiceClient);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  10. docs/en/docs/tutorial/dependencies/index.md

    And then, that system (in this case **FastAPI**) will take care of doing whatever is needed to provide your code with those needed dependencies ("inject" the dependencies).
    
    This is very useful when you need to:
    
    * Have shared logic (the same code logic again and again).
    * Share database connections.
    * Enforce security, authentication, role requirements, etc.
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 9.6K bytes
    - Viewed (0)
Back to top