Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 556 for delegates (0.05 sec)

  1. src/test/java/jcifs/smb1/util/LogStreamTest.java

            assertThrows(NullPointerException.class, () -> {
                LogStream.setInstance(null);
            });
        }
    
        @Test
        void testPrintStreamDelegation() {
            // Test that LogStream properly delegates to underlying PrintStream
            // Use a real PrintStream with ByteArrayOutputStream to test delegation
            ByteArrayOutputStream baos = new ByteArrayOutputStream();
            PrintStream realStream = new PrintStream(baos);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbSessionImplTest.java

        void testGettersAndState() {
            SmbSessionImpl session = newSession();
    
            // Basic getters
            assertSame(configuration, session.getConfig(), "getConfig delegates to transportContext");
            assertEquals("EXAMPLE", session.getTargetDomain());
            assertEquals("server.example", session.getTargetHost());
            assertTrue(session.isInUse(), "New session starts in-use (usageCount=1)");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/TimeLimiter.java

    @J2ktIncompatible
    @GwtIncompatible
    @SuppressWarnings("GoodTime") // should have java.time.Duration overloads
    public interface TimeLimiter {
    
      /**
       * Returns an instance of {@code interfaceType} that delegates all method calls to the {@code
       * target} object, enforcing the specified time limit on each call. This time-limited delegation
       * is also performed for calls to {@link Object#equals}, {@link Object#hashCode}, and {@link
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Jan 18 02:54:30 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ForwardingSortedMultiset.java

      /** Constructor for use by subclasses. */
      protected ForwardingSortedMultiset() {}
    
      @Override
      protected abstract SortedMultiset<E> delegate();
    
      @Override
      public NavigableSet<E> elementSet() {
        return delegate().elementSet();
      }
    
      /**
       * A sensible implementation of {@link SortedMultiset#elementSet} in terms of the following
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbResourceLocatorInternalTest.java

            assertEquals(expected, result);
            verify(locator, times(1)).shouldForceSigning();
            verifyNoMoreInteractions(locator);
        }
    
        // Happy path: overlaps delegates to implementation and returns as stubbed
        @Test
        @DisplayName("overlaps returns true then false as stubbed")
        void overlapsReturnsTrueThenFalse() throws Exception {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/config/DelegatingConfigurationTest.java

            // Then
            assertTrue(smb2Only, "Should delegate SMB2 only negotiation");
            assertFalse(secureNegotiate, "Should delegate secure negotiate requirement");
            assertTrue(ntlmTargetName, "Should delegate NTLM target name setting");
            assertFalse(port139Failover, "Should delegate port 139 failover setting");
            assertTrue(dfsStrictView, "Should delegate DFS strict view setting");
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.7K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/NtlmUtilTest.java

            assertEquals(16 + clientData.length, result.length);
            assertArrayEquals(clientData, Arrays.copyOfRange(result, 16, 16 + clientData.length));
        }
    
        @Test
        @DisplayName("getLMv2Response(byte[]): delegates to computeResponse")
        void testGetLMv2Response_bytes_delegates() {
            // Arrange
            byte[] key = hex("000102030405060708090A0B0C0D0E0F");
            byte[] server = hex("0102030405060708");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12K bytes
    - Viewed (0)
  8. src/test/java/jcifs/http/NtlmHttpURLConnectionTest.java

            properties.put("Accept", Collections.singletonList("application/json"));
            when(mockConnection.getRequestProperties()).thenReturn(properties);
            // Need to mock getRequestProperty as well since it delegates to wrapped connection
            when(mockConnection.getRequestProperty("Accept")).thenReturn("application/json");
    
            // Act
            ntlmConnection = new NtlmHttpURLConnection(mockConnection, mockCifsContext);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  9. src/main/java/jcifs/config/DelegatingConfiguration.java

         * @param delegate
         *            delegate to pass all non-overridden method calls to
         *
         */
        public DelegatingConfiguration(final Configuration delegate) {
            this.delegate = delegate;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.Configuration#getRandom()
         */
        @Override
        public SecureRandom getRandom() {
            return this.delegate.getRandom();
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 24.1K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SmbWatchHandleImplTest.java

            verify(tree).send(reqCap.capture(), any(), any(), any());
            assertTrue(reqCap.getValue() instanceof Smb2ChangeNotifyRequest);
        }
    
        // call() should delegate to watch() and return the same list
        @Test
        @DisplayName("call() delegates to watch() and returns same result")
        void call_delegatesToWatch() throws Exception {
            List<FileNotifyInformation> info = new ArrayList<>();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
Back to top