Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 154 for caps (0.02 seconds)

  1. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateRequestTest.java

            // When
            request = new Smb2NegotiateRequest(mockConfig, 0);
    
            // Then
            int caps = request.getCapabilities();
            int capCount = 0;
            if ((caps & Smb2Constants.SMB2_GLOBAL_CAP_DFS) != 0)
                capCount++;
            if ((caps & Smb2Constants.SMB2_GLOBAL_CAP_ENCRYPTION) != 0)
                capCount++;
    
            assertEquals(expectedCapabilityCount, capCount);
        }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 20.7K bytes
    - Click Count (0)
  2. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseTest.java

            // When
            int caps = response.getCapabilities();
    
            // Then
            assertEquals(0x7F, caps);
        }
    
        @Test
        @DisplayName("Should return common capabilities")
        void testGetCommonCapabilities() throws Exception {
            // Given
            setPrivateField(response, "commonCapabilities", 0x3F);
    
            // When
            int caps = response.getCommonCapabilities();
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 32.5K bytes
    - Click Count (0)
  3. src/test/java/jcifs/smb/SmbTransportInternalTest.java

        @ValueSource(ints = { -1, 0, 1, 1024 })
        void hasCapability_variousCaps(int cap) throws SmbException {
            when(transport.hasCapability(anyInt())).thenAnswer(inv -> ((int) inv.getArgument(0)) >= 0);
    
            boolean result = transport.hasCapability(cap);
    
            assertEquals(cap >= 0, result);
            verify(transport, times(1)).hasCapability(cap);
        }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 12.1K bytes
    - Click Count (0)
  4. src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateResponse.java

        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.SmbNegotiationResponse#haveCapabilitiy(int)
         */
        @Override
        public boolean haveCapabilitiy(final int cap) {
            return (this.commonCapabilities & cap) == cap;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.SmbNegotiationResponse#isDFSSupported()
         */
        @Override
        public boolean isDFSSupported() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 24K bytes
    - Click Count (0)
  5. src/test/java/jcifs/internal/SmbNegotiationResponseTest.java

        void testHaveCapabilityMultipleFlags() {
            // Arrange
            int cap1 = 0x00000001;
            int cap2 = 0x00000002;
            int cap3 = 0x00000004;
            when(negotiationResponse.haveCapabilitiy(cap1)).thenReturn(true);
            when(negotiationResponse.haveCapabilitiy(cap2)).thenReturn(false);
            when(negotiationResponse.haveCapabilitiy(cap3)).thenReturn(true);
    
            // Act & Assert
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 20.6K bytes
    - Click Count (0)
  6. src/test/java/jcifs/smb/SmbFileInputStreamTest.java

                // Verify the request offset equals the skip value (2)
                ArgumentCaptor<Smb2ReadRequest> cap = ArgumentCaptor.forClass(Smb2ReadRequest.class);
                verify(mockTree).send(cap.capture(), any(RequestParam.class));
                Smb2ReadRequest req = cap.getValue();
    
                // Reflectively inspect the private 'offset' field to assert it used the advanced fp
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 12.8K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/collect/MapsCollectionTest.java

                        putEntries(map, entries);
                        map.putAll(ENTRIES_TO_FILTER);
                        map = Maps.filterEntries(map, FILTER_ENTRIES_1);
                        return Maps.filterEntries(map, FILTER_ENTRIES_2);
                      }
                    })
                .named("Maps.filterEntries[Maps.filterEntries[Map, Predicate], Predicate]")
                .withFeatures(
                    MapFeature.ALLOWS_NULL_KEYS,
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue May 13 17:27:14 GMT 2025
    - 32.4K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/collect/StandardTable.java

    import static com.google.common.collect.Iterators.emptyIterator;
    import static com.google.common.collect.Maps.asMapEntryIterator;
    import static com.google.common.collect.Maps.immutableEntry;
    import static com.google.common.collect.Maps.safeContainsKey;
    import static com.google.common.collect.Maps.safeGet;
    import static com.google.common.collect.NullnessCasts.uncheckedCastNullableTToT;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 29.4K bytes
    - Click Count (0)
  9. guava/src/com/google/common/collect/FilteredEntryMultimap.java

        }
    
        @Override
        Set<K> createKeySet() {
          @WeakOuter
          final class KeySetImpl extends Maps.KeySet<K, Collection<V>> {
            KeySetImpl() {
              super(AsMap.this);
            }
    
            @Override
            public boolean removeAll(Collection<?> c) {
              return removeEntriesIf(Maps.keyPredicateOnEntries(in(c)));
            }
    
            @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 12.3K bytes
    - Click Count (0)
  10. guava/src/com/google/common/collect/Tables.java

        }
    
        @Override
        public Map<R, Map<C, V2>> rowMap() {
          return Maps.transformValues(fromTable.rowMap(), row -> Maps.transformValues(row, function));
        }
    
        @Override
        public Map<C, Map<R, V2>> columnMap() {
          return Maps.transformValues(
              fromTable.columnMap(), column -> Maps.transformValues(column, function));
        }
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 16:16:42 GMT 2026
    - 25.3K bytes
    - Click Count (0)
Back to Top