Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 502 for locator (0.18 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

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

                SmbFile parent = mock(SmbFile.class, RETURNS_DEEP_STUBS);
                SmbResourceLocator locator = mock(SmbResourceLocator.class);
                when(parent.getLocator()).thenReturn(locator);
                when(locator.getURL()).thenReturn(new URL("file:/"));
                when(locator.getAddress()).thenThrow(new CIFSException("no master", new UnknownHostException("MB")));
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 17.1K bytes
    - Click Count (0)
  2. src/test/java/jcifs/smb/SmbResourceLocatorInternalTest.java

        void overlapsReturnsTrueThenFalse() throws Exception {
            when(locator.overlaps(other)).thenReturn(true, false);
    
            assertTrue(locator.overlaps(other));
            assertFalse(locator.overlaps(other));
    
            verify(locator, times(2)).overlaps(other);
            verifyNoMoreInteractions(locator);
        }
    
        // Error path: overlaps may throw a CIFSException per signature
        @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 6.9K bytes
    - Click Count (0)
  3. api/maven-api-core/src/test/java/org/apache/maven/api/services/SourcesTest.java

            ModelSource.ModelLocator locator = mock(ModelSource.ModelLocator.class);
            Path resolvedPath = Paths.get("/tmp/subproject/pom.xml");
            when(locator.locateExistingPom(any(Path.class))).thenReturn(resolvedPath);
    
            Sources.BuildPathSource source = (Sources.BuildPathSource) Sources.buildSource(basePath);
            ModelSource resolved = source.resolve(locator, "subproject");
    
            assertNotNull(resolved);
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Mon Sep 29 14:45:25 GMT 2025
    - 5.4K bytes
    - Click Count (0)
  4. src/main/java/jcifs/smb/SmbEnumerationUtil.java

                final ResourceNameFilter fnf, final ResourceFilter ff) throws CIFSException {
            // clone the locator so that the address index is not modified
            final SmbResourceLocatorImpl locator = parent.fileLocator.clone();
            final CIFSContext tc = parent.getContext();
            final URL u = locator.getURL();
    
            FileEntry[] entries;
    
            if (u.getPath().lastIndexOf('/') != u.getPath().length() - 1) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 12.3K bytes
    - Click Count (0)
  5. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelProcessor.java

    @Deprecated(since = "4.0.0")
    public class DefaultModelProcessor implements ModelProcessor {
    
        @Inject
        private ModelLocator locator;
    
        @Inject
        private ModelReader reader;
    
        public DefaultModelProcessor setModelLocator(ModelLocator locator) {
            this.locator = locator;
            return this;
        }
    
        public DefaultModelProcessor setModelReader(ModelReader reader) {
            this.reader = reader;
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Sat Apr 05 11:52:05 GMT 2025
    - 3.8K bytes
    - Click Count (0)
  6. src/test/java/jcifs/smb/DirFileEntryEnumIterator2Test.java

        void happyPath_enumerates_and_closes(String wildcard) throws Exception {
            // Setup required for this test
            when(parent.getLocator()).thenReturn(locator);
            when(locator.getUNCPath()).thenReturn("\\\\server\\share\\dir\\");
            when(tree.getConfig()).thenReturn(config);
            when(config.getMaximumBufferSize()).thenReturn(65535);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 13.7K bytes
    - Click Count (0)
  7. api/maven-api-core/src/main/java/org/apache/maven/api/services/ModelSource.java

         * <ul>
         *   <li>Normalizing the relative path for the current platform</li>
         *   <li>Resolving the path against the current POM's location</li>
         *   <li>Using the model locator to find an existing POM at the resolved location</li>
         * </ul>
         *
         * @param modelLocator the locator to use for finding the related POM file
         * @param relative the relative path to resolve
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Mon Sep 29 14:45:25 GMT 2025
    - 4.4K bytes
    - Click Count (0)
  8. src/main/java/jcifs/smb/NetServerEnumIterator.java

                final ResourceNameFilter filter) throws CIFSException {
            this.parent = parent;
            this.nameFilter = filter;
            final SmbResourceLocator locator = parent.getLocator();
            this.workgroup = locator.getType() == SmbConstants.TYPE_WORKGROUP;
            if (locator.getURL().getHost().isEmpty()) {
                this.request = new NetServerEnum2(th.getConfig(), th.getOEMDomainName(), NetServerEnum2.SV_TYPE_DOMAIN_ENUM);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 6.5K bytes
    - Click Count (0)
  9. src/test/java/jcifs/smb/NetServerEnumIteratorTest.java

        void testConstructor_NonWorkgroupType_ThrowsException() throws Exception {
            // Given: A non-workgroup type with a host
            when(locator.getType()).thenReturn(SmbConstants.TYPE_SERVER);
            when(locator.getURL()).thenReturn(createSmbURL("smb://server/"));
    
            // When & Then: Constructor should throw SmbException
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 9.8K bytes
    - Click Count (0)
  10. src/test/java/jcifs/SmbResourceTest.java

                when(resource.getLocator()).thenReturn(mockLocator);
    
                // When
                SmbResourceLocator locator = resource.getLocator();
    
                // Then
                assertNotNull(locator, "Locator should not be null");
                assertSame(mockLocator, locator, "Should return the expected locator");
            }
    
            @Test
            @DisplayName("getContext should return CIFSContext")
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 35K bytes
    - Click Count (0)
Back to Top