Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 131 for Capture (0.04 sec)

  1. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        assertAssignable(
            TypeToken.of(new TypeCapture<L>() {}.capture()),
            TypeToken.of(new TypeCapture<L>() {}.capture()));
        assertNotAssignable(
            TypeToken.of(new TypeCapture<R>() {}.capture()),
            TypeToken.of(new TypeCapture<L>() {}.capture()));
        assertAssignable(TypeToken.of(new TypeCapture<L>() {}.capture()), new TypeToken<List<R>>() {});
      }
    
      public void testisSupertypeOf_resolved() {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 18:44:53 UTC 2025
    - 89K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/SMBSigningDigestTest.java

            verify(signingDigest).sign(dataCaptor.capture(), offsetCaptor.capture(), lengthCaptor.capture(), eq(request), eq(response));
    
            assertArrayEquals(testData, dataCaptor.getValue());
            assertEquals(offset, offsetCaptor.getValue());
            assertEquals(length, lengthCaptor.getValue());
        }
    
        @Test
        @DisplayName("Test verify method invocation with argument capture")
        void testVerifyMethodArgumentCapture() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  3. guava/src/com/google/common/reflect/TypeResolver.java

       * {@code ArrayList<?>::set}.
       *
       * <p>Instead, {@code <?>} will be resolved to a capture in the form of a type variable {@code
       * <capture-of-? extends Object>}, effectively preventing {@code set} from accepting any type.
       */
      static TypeResolver invariantly(Type contextType) {
        Type invariantContext = WildcardCapturer.INSTANCE.capture(contextType);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 23 22:30:05 UTC 2025
    - 25.3K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/reflect/TypesTest.java

            (ParameterizedType) new TypeCapture<Entry<String, int[][]>>() {}.capture();
        ParameterizedType ourType =
            Types.newParameterizedTypeWithOwner(Map.class, Entry.class, String.class, int[][].class);
    
        new EqualsTester()
            .addEqualityGroup(jvmType, ourType)
            .addEqualityGroup(new TypeCapture<Entry<String, String>>() {}.capture())
            .addEqualityGroup(new TypeCapture<Map<String, Integer>>() {}.capture())
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Feb 11 19:03:19 UTC 2025
    - 15.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/dcerpc/msrpc/SamrDomainHandleTest.java

        @Mock
        private SamrPolicyHandle mockPolicyHandle;
        @Mock
        private rpc.sid_t mockSid;
    
        // Use ArgumentCaptor to capture the MsrpcSamrOpenDomain instance passed to sendrecv
        private ArgumentCaptor<MsrpcSamrOpenDomain> openDomainCaptor;
        // Use ArgumentCaptor to capture the MsrpcSamrCloseHandle instance passed to sendrecv
        private ArgumentCaptor<MsrpcSamrCloseHandle> closeHandleCaptor;
    
        @BeforeEach
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  6. tests/test_validation_error_context.py

    async def request_validation_handler(request: Request, exc: RequestValidationError):
        captured_exception.capture(exc)
        raise exc
    
    
    @app.exception_handler(ResponseValidationError)
    @sub_app.exception_handler(ResponseValidationError)
    async def response_validation_handler(_: Request, exc: ResponseValidationError):
        captured_exception.capture(exc)
        raise exc
    
    
    @app.exception_handler(WebSocketRequestValidationError)
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 06 12:21:57 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/ClosingFuture.java

      /**
       * An object that can capture objects to be closed later, when a {@link ClosingFuture} pipeline is
       * done.
       */
      public static final class DeferredCloser {
        @RetainedWith private final CloseableList list;
    
        DeferredCloser(CloseableList list) {
          this.list = list;
        }
    
        /**
         * Captures an object to be closed when a {@link ClosingFuture} pipeline is done.
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Sep 11 13:51:27 UTC 2025
    - 96.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/reflect/TypeResolver.java

       * {@code ArrayList<?>::set}.
       *
       * <p>Instead, {@code <?>} will be resolved to a capture in the form of a type variable {@code
       * <capture-of-? extends Object>}, effectively preventing {@code set} from accepting any type.
       */
      static TypeResolver invariantly(Type contextType) {
        Type invariantContext = WildcardCapturer.INSTANCE.capture(contextType);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 23 22:30:05 UTC 2025
    - 25.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SmbTransportInternalTest.java

            ArgumentCaptor<Integer> rnCap = ArgumentCaptor.forClass(Integer.class);
    
            verify(transport).getDfsReferrals(eq(ctx), nameCap.capture(), hostCap.capture(), domCap.capture(), rnCap.capture());
            assertEquals(name, nameCap.getValue());
            assertEquals(host, hostCap.getValue());
            assertEquals(domain, domCap.getValue());
            assertEquals(rn, rnCap.getValue());
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/WinErrorTest.java

            // Capture one known interaction to verify argument integrity
            ArgumentCaptor<Integer> codeCap = ArgumentCaptor.forClass(Integer.class);
            ArgumentCaptor<String> msgCap = ArgumentCaptor.forClass(String.class);
            verify(handler, atLeastOnce()).handle(codeCap.capture(), msgCap.capture());
    
            // Assert at least one captured pair is a known mapping (happy path spot check)
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.4K bytes
    - Viewed (0)
Back to top