Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 40 for unwrapped (0.05 sec)

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

                Class<?> utilClass = SmbEnumerationUtil.class;
    
                // Act
                Object unwrapped = invokePrivate(utilClass, "unwrapDOSFilter", new Class<?>[] { ResourceFilter.class }, wrapper);
    
                // Assert
                assertNotNull(unwrapped);
                assertTrue(unwrapped instanceof DosFileFilter);
    
                // Verify fields preserved (via reflection since they are protected)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/CredentialsInternalTest.java

            // Act & Assert
            // unwrap to interface itself should return same instance
            CredentialsInternal unwrapped = creds.unwrap(CredentialsInternal.class);
            assertNotNull(unwrapped, "unwrap to CredentialsInternal returns instance");
            assertSame(creds, unwrapped, "unwrap returns the same object instance");
    
            // unwrap to unrelated type should return null (use another Credentials implementation)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/dfs/DfsReferralDataImplTest.java

            void testUnwrapToDfsReferralData() {
                DfsReferralData unwrapped = referralData.unwrap(DfsReferralData.class);
                assertSame(referralData, unwrapped);
            }
    
            @Test
            @DisplayName("Should unwrap to DfsReferralDataInternal interface")
            void testUnwrapToDfsReferralDataInternal() {
                DfsReferralDataInternal unwrapped = referralData.unwrap(DfsReferralDataInternal.class);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 30.6K bytes
    - Viewed (0)
  4. src/test/java/jcifs/SIDTest.java

         */
        @Test
        void testUnwrap() throws SmbException {
            SID sid = new SID(adminSidString);
            SID unwrapped = sid.unwrap(SID.class);
            assertNotNull(unwrapped);
            assertEquals(sid, unwrapped);
    
            assertThrows(ClassCastException.class, () -> sid.unwrap(String.class));
        }
    
        /**
         * Test the resolve method.
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbPipeHandleImplTest.java

        @DisplayName("unwrap returns self for assignable type; throws for incompatible and null")
        void testUnwrap() {
            // Happy path: unwrap to concrete type
            SmbPipeHandleImpl unwrapped = target.unwrap(SmbPipeHandleImpl.class);
            assertSame(target, unwrapped);
    
            // Incompatible type: expect ClassCastException
            class OtherPipeHandle implements SmbPipeHandle {
                @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/netbios/NbtAddressTest.java

            NbtAddress nbtAddress = new NbtAddress(mockName, testAddressInt, false, NbtAddress.H_NODE);
            NbtAddress unwrapped = nbtAddress.unwrap(NbtAddress.class);
            assertNotNull(unwrapped);
            assertSame(nbtAddress, unwrapped);
    
            // Test unwrap for incompatible type - NbtAddress implements NetbiosAddress so it should return itself
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/SmbPipeHandleInternalTest.java

            // Happy path: unwrap to interface and concrete type
            SmbPipeHandle unwrapped1 = handle.unwrap(SmbPipeHandle.class);
            SmbPipeHandleImpl unwrapped2 = handle.unwrap(SmbPipeHandleImpl.class);
            assertSame(handle, unwrapped1);
            assertSame(handle, unwrapped2);
    
            // Invalid type
            class OtherPipeHandle implements SmbPipeHandle {
                @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 16.7K bytes
    - Viewed (0)
  8. guava-testlib/test/com/google/common/testing/ClassSanityTesterTest.java

            () -> new ClassSanityTester().doTestEquals(SetWrapper.class));
      }
    
      private abstract static class Wrapper {
        private final Object wrapped;
    
        Wrapper(Object wrapped) {
          this.wrapped = checkNotNull(wrapped);
        }
    
        @Override
        public boolean equals(@Nullable Object obj) {
          // In general getClass().isInstance() is bad for equals.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/job/AggregateLogJobTest.java

            // Setup mock SearchLogHelper that throws wrapped checked exception
            SearchLogHelper mockSearchLogHelper = new SearchLogHelper() {
                @Override
                public void storeSearchLog() {
                    try {
                        throw new Exception("Checked exception");
                    } catch (Exception e) {
                        throw new RuntimeException("Wrapped: " + e.getMessage(), e);
                    }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/MapMaker.java

    import java.util.concurrent.ConcurrentHashMap;
    import java.util.concurrent.ConcurrentMap;
    import org.jspecify.annotations.Nullable;
    
    /**
     * A builder of {@link ConcurrentMap} instances that can have keys or values automatically wrapped
     * in {@linkplain WeakReference weak} references.
     *
     * <p>Usage example:
     *
     * {@snippet :
     * ConcurrentMap<Request, Stopwatch> timers = new MapMaker()
     *     .concurrencyLevel(4)
     *     .weakKeys()
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 12.8K bytes
    - Viewed (0)
Back to top