Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 293 for unwrap (0.14 sec)

  1. src/test/java/jcifs/smb/SmbPipeHandleInternalTest.java

        }
    
        @Test
        @DisplayName("unwrap returns this for compatible types and throws otherwise")
        void unwrap_success_and_failure() {
            SmbPipeHandleImpl handle = newHandleWithBasicStubs(0, "\\\\pipe\\\\z");
    
            // Happy path: unwrap to interface and concrete type
            SmbPipeHandle unwrapped1 = handle.unwrap(SmbPipeHandle.class);
            SmbPipeHandleImpl unwrapped2 = handle.unwrap(SmbPipeHandleImpl.class);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 16.7K bytes
    - Viewed (0)
  2. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/MockWebServer.kt

      }
    
      @Throws(InterruptedException::class)
      fun takeRequest(): RecordedRequest = delegate.takeRequest().unwrap()
    
      @Throws(InterruptedException::class)
      fun takeRequest(
        timeout: Long,
        unit: TimeUnit,
      ): RecordedRequest? = delegate.takeRequest(timeout, unit)?.unwrap()
    
      @JvmName("-deprecated_requestCount")
      fun getRequestCount(): Int = delegate.requestCount
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 00:19:42 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/netbios/NbtAddressTest.java

        void testUnwrap() {
            // Test unwrap method for correct type casting
            mockName = new Name(mockConfig, "TEST", 0x20, null);
            NbtAddress nbtAddress = new NbtAddress(mockName, testAddressInt, false, NbtAddress.H_NODE);
            NbtAddress unwrapped = nbtAddress.unwrap(NbtAddress.class);
            assertNotNull(unwrapped);
            assertSame(nbtAddress, unwrapped);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.4K bytes
    - Viewed (0)
  4. src/main/java/jcifs/netbios/UniAddress.java

        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.Address#unwrap(java.lang.Class)
         */
        @SuppressWarnings("unchecked")
        @Override
        public <T extends Address> T unwrap(final Class<T> type) {
            if (this.addr instanceof Address) {
                return ((Address) this.addr).unwrap(type);
            }
            if (this.getClass().isAssignableFrom(type)) {
                return (T) this;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbTreeImplTest.java

            assertEquals(tree1, tree2);
            assertFalse(tree1.equals(tree3));
        }
    
        // Test case for the unwrap method
        @Test
        void testUnwrap() {
            SmbTreeImpl tree = new SmbTreeImpl(session, "SHARE", "A:");
            SmbTreeImpl unwrapped = tree.unwrap(SmbTreeImpl.class);
            assertEquals(tree, unwrapped);
            // Test unwrapping to a non-assignable type should fail
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SIDTest.java

            }
    
            @Test
            @DisplayName("unwrap returns this for assignable type; otherwise throws ClassCastException")
            void testUnwrap() throws Exception {
                SID sid = new SID("S-1-5-21-1");
                // Happy path
                assertSame(sid, sid.unwrap(SID.class));
                assertSame(sid, sid.unwrap(Object.class));
                // Invalid unwrap
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  7. cmd/object-api-errors.go

    }
    
    // Unwrap the error.
    func (e InsufficientWriteQuorum) Unwrap() error {
    	return errErasureWriteQuorum
    }
    
    // GenericError - generic object layer error.
    type GenericError struct {
    	Bucket    string
    	Object    string
    	VersionID string
    	Err       error
    }
    
    // Unwrap the error to its underlying error.
    func (e GenericError) Unwrap() error {
    	return e.Err
    }
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 09 02:05:14 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/helper/SambaHelperTest.java

            public String getTypeText() {
                return "User";
            }
    
            @Override
            public int getType() {
                return 1;
            }
    
            @Override
            public <T> T unwrap(Class<T> type) {
                return null;
            }
        };
    
        public void test_constants() {
            assertEquals(4, SambaHelper.SID_TYPE_ALIAS);
            assertEquals(6, SambaHelper.SID_TYPE_DELETED);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 14.7K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SIDCacheImpl.java

                break;
            default:
                throw new SmbException(rpc.retval, false);
            }
    
            for (int si = 0; si < sids.length; si++) {
                final SID out = sids[si].unwrap(SID.class);
                final LsarTranslatedName resp = rpc.names.names[si];
                out.domainName = null;
                switch (resp.sid_type) {
                case jcifs.SID.SID_TYPE_USER:
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Mon Aug 25 14:34:10 UTC 2025
    - 13.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SmbNamedPipeTest.java

            assertNotNull(handle, "Handle must not be null");
            assertSame(pipe, handle.getPipe(), "Handle should reference originating pipe");
            assertSame(handle, handle.unwrap(SmbPipeHandle.class), "unwrap should return same instance for interface type");
        }
    
        @ParameterizedTest
        @DisplayName("getPipeType echoes constructor input (edge values)")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.2K bytes
    - Viewed (0)
Back to top