Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 49 for WRAPPER (0.04 sec)

  1. src/test/java/jcifs/context/CIFSContextCredentialWrapperTest.java

        void testRenewCredentials_RenewableAndRenewed() {
            // Set up the wrapper with renewable credentials
            wrapper = new CIFSContextCredentialWrapper(mockDelegate, mockRenewableCredentials);
            when(mockRenewableCredentials.renew()).thenReturn(mockRenewedCredentialsInternal);
    
            // Perform the renewal
            boolean renewed = wrapper.renewCredentials("locationHint", null);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbEnumerationUtilTest.java

                // Wrapper but not wrapping a DosFileFilter
                SmbFileFilter nonDosFilter = mock(SmbFileFilter.class);
                Object wrapper = newPrivateInner("ResourceFilterWrapper", new Class<?>[] { SmbFileFilter.class }, nonDosFilter);
    
                Object unwrapped = invokePrivate(SmbEnumerationUtil.class, "unwrapDOSFilter", new Class<?>[] { ResourceFilter.class }, wrapper);
                assertNull(unwrapped);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/util/transport/TransportExceptionTest.java

                // Wrap in another exception
                TransportException wrapper = new TransportException("Wrapper", original);
    
                assertEquals("Wrapper", wrapper.getMessage());
                assertEquals(original, wrapper.getRootCause());
                assertEquals(originalMessage, ((TransportException) wrapper.getRootCause()).getMessage());
            }
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  4. cmd/object_api_suite_test.go

    	eof  bool
    	data []byte
    }
    
    func (r *testOneByteReadNoEOF) Read(p []byte) (n int, err error) {
    	if r.eof {
    		return 0, io.EOF
    	}
    	n = copy(p, r.data)
    	r.eof = true
    	return n, nil
    }
    
    // Wrapper for calling testMakeBucket for both Erasure and FS.
    func TestMakeBucket(t *testing.T) {
    	ExecObjectLayerTest(t, testMakeBucket)
    }
    
    // Tests validate bucket creation.
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 34.5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbTreeConnectionTraceTest.java

            SmbTreeConnectionTrace delegate = Mockito.spy(new SmbTreeConnectionTrace(ctx));
    
            // Act: create wrapper using delegate, then acquire and release once
            SmbTreeConnectionTrace wrapper = new SmbTreeConnectionTrace(delegate);
            wrapper.acquire();
            wrapper.release();
    
            // Assert: delegate interactions occur when usage transitions happen
            verify(delegate, times(1)).acquire();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/pac/kerberos/KerberosTokenTest.java

            DERSequence wrongTag = new DERSequence(new ASN1Encodable[] { new ASN1Integer(5) });
            innerContent.write(wrongTag.getEncoded());
    
            byte[] content = innerContent.toByteArray();
    
            // Create GSS-API wrapper
            ByteArrayOutputStream baos = new ByteArrayOutputStream();
            baos.write(0x60); // APPLICATION 0
            baos.write(content.length);
            baos.write(content);
    
            byte[] token = baos.toByteArray();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/job/AggregateLogJobTest.java

                    throw new RuntimeException("Wrapper exception", cause);
                }
            };
            ComponentUtil.register(mockSearchLogHelper, "searchLogHelper");
    
            // Execute the job
            String result = aggregateLogJob.execute();
    
            // Verify result contains the wrapper exception message
            assertNotNull(result);
            assertTrue(result.contains("Wrapper exception"));
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  8. src/main/java/jcifs/context/CIFSContextWrapper.java

    import jcifs.smb.SmbNamedPipe;
    
    /**
     * A wrapper implementation of CIFSContext that delegates to another context.
     * This class allows for context decoration and customization through delegation.
     *
     * @author mbechler
     */
    public class CIFSContextWrapper implements CIFSContext {
    
        private final CIFSContext delegate;
        private Handler wrappedHandler;
    
        /**
         * Constructs a wrapper around the specified CIFS context.
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/exception/FessUserNotFoundExceptionTest.java

            FessUserNotFoundException originalException = new FessUserNotFoundException(username);
    
            try {
                throw new RuntimeException("Wrapper exception", originalException);
            } catch (RuntimeException e) {
                assertEquals("Wrapper exception", e.getMessage());
                assertNotNull(e.getCause());
                assertTrue(e.getCause() instanceof FessUserNotFoundException);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  10. src/main/java/jcifs/context/CIFSContextCredentialWrapper.java

    import jcifs.smb.SmbAuthException;
    import jcifs.smb.SmbRenewableCredentials;
    
    /**
     * Context wrapper supplying alternate credentials
     *
     * @author mbechler
     *
     */
    public final class CIFSContextCredentialWrapper extends CIFSContextWrapper implements CIFSContext {
    
        private Credentials creds;
    
        /**
         * Constructs a CIFS context wrapper with custom credentials.
         *
         * @param delegate the context to wrap
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.8K bytes
    - Viewed (0)
Back to top