Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for overlaps (0.05 sec)

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

        }
    
        // Happy path: overlaps delegates to implementation and returns as stubbed
        @Test
        @DisplayName("overlaps returns true then false as stubbed")
        void overlapsReturnsTrueThenFalse() throws Exception {
            when(locator.overlaps(other)).thenReturn(true, false);
    
            assertTrue(locator.overlaps(other));
            assertFalse(locator.overlaps(other));
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbResourceLocatorInternal.java

        /**
         * Determines whether this resource path overlaps with another resource path by sharing a common root.
         *
         * @param other the other resource locator to compare with
         * @return whether the paths share a common root
         * @throws CIFSException if an error occurs during comparison
         */
        boolean overlaps(SmbResourceLocator other) throws CIFSException;
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SmbResourceLocatorImplTest.java

            SmbResourceLocatorImpl child = locator("smb://server/share/dir/file");
            assertTrue(base.overlaps(child));
    
            SmbResourceLocatorImpl other = locator("smb://server/share/other");
            assertFalse(base.overlaps(other));
        }
    
        @Test
        @DisplayName("isRoot and isRootOrShare reflect path state")
        void testIsRootAndShare() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbResourceLocatorImpl.java

        }
    
        /**
         *
         * {@inheritDoc}
         *
         * @see jcifs.smb.SmbResourceLocatorInternal#overlaps(jcifs.SmbResourceLocator)
         */
        @Override
        public boolean overlaps(final SmbResourceLocator other) throws CIFSException {
            final String tp = getCanonicalURL();
            final String op = other.getCanonicalURL();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 23.6K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbFile.java

                 * It is invalid for the source path to be a child of the destination
                 * path or visa versa.
                 */
                if (this.fileLocator.overlaps(dest.getLocator())) {
                    throw new SmbException("Source and destination paths overlap.");
                }
    
                final WriterThread w = new WriterThread();
                w.setDaemon(true);
    
                try {
                    w.start();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 103.2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/RangeTest.java

        assertThat(expected).hasMessageThat().contains("connected");
    
        // adjacent below
        assertEquals(Range.closedOpen(4, 4), range.intersection(Range.closedOpen(2, 4)));
    
        // overlap below
        assertEquals(Range.closed(4, 6), range.intersection(Range.closed(2, 6)));
    
        // enclosed with same start
        assertEquals(Range.closed(4, 6), range.intersection(Range.closed(4, 6)));
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 24.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/FileNotifyInformationTest.java

                // Check that no two flags overlap (except combined flags)
                for (int i = 0; i < flags.length; i++) {
                    for (int j = i + 1; j < flags.length; j++) {
                        assertEquals(0, flags[i] & flags[j], String.format("Flags at index %d and %d should not overlap", i, j));
                    }
                }
            }
        }
    
        @Nested
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/NtlmUtilTest.java

            byte[] viaHash = NtlmUtil.nTOWFv2(domain, user, NtlmUtil.getNTHash(password));
            byte[] viaPassword = NtlmUtil.nTOWFv2(domain, user, password);
    
            // Assert: overloads consistent
            assertArrayEquals(viaHash, viaPassword, "Both overloads must compute same NTLMv2 key");
    
            // Changing domain should change the key (domain is part of MAC input)
            byte[] differentDomain = NtlmUtil.nTOWFv2("DOMAIN", user, password);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/RangeTest.java

        assertThat(expected).hasMessageThat().contains("connected");
    
        // adjacent below
        assertEquals(Range.closedOpen(4, 4), range.intersection(Range.closedOpen(2, 4)));
    
        // overlap below
        assertEquals(Range.closed(4, 6), range.intersection(Range.closed(2, 6)));
    
        // enclosed with same start
        assertEquals(Range.closed(4, 6), range.intersection(Range.closed(4, 6)));
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 24.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ImmutableRangeSet.java

       * Overlapping ranges and empty ranges are forbidden, though adjacent ranges are permitted and
       * will be merged.
       *
       * @throws IllegalArgumentException if any ranges overlap or are empty
       * @since 21.0
       */
      public static <C extends Comparable<?>> ImmutableRangeSet<C> copyOf(Iterable<Range<C>> ranges) {
        return new ImmutableRangeSet.Builder<C>().addAll(ranges).build();
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 27.4K bytes
    - Viewed (0)
Back to top