Search Options

Results per page
Sort
Preferred Languages
Advance

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

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

        }
    
        @Test
        @DisplayName("accept: propagates SmbException thrown by dependency")
        void accept_propagatesSmbException() throws Exception {
            // Arrange: filter delegates to isDirectory which may throw SmbException
            SmbFileFilter filter = f -> f.isDirectory();
            SmbException boom = new SmbException("io error");
            when(smbFile.isDirectory()).thenThrow(boom);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/CredentialsInternalTest.java

    class CredentialsInternalTest {
    
        @Mock
        CIFSContext mockContext;
    
        /**
         * Simple in-test implementation of CredentialsInternal to exercise the API surface.
         * It validates inputs, records calls, and delegates some behavior to collaborators
         * so we can verify interactions.
         */
        static class TestCredentials implements CredentialsInternal {
            private final String domain;
            private final boolean anonymous;
    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/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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top