Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 56 for getFilename (0.3 seconds)

  1. src/test/java/jcifs/internal/NotifyResponseTest.java

            // Verify all filenames are preserved
            assertEquals("added.txt", result.get(0).getFileName());
            assertEquals("removed.txt", result.get(1).getFileName());
            assertEquals("modified.txt", result.get(2).getFileName());
            assertEquals("oldname.txt", result.get(3).getFileName());
            assertEquals("newname.txt", result.get(4).getFileName());
        }
    
        @Test
        @DisplayName("Test NotifyResponse with stream actions")
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 21.2K bytes
    - Click Count (0)
  2. compat/maven-compat/src/main/java/org/apache/maven/project/artifact/ProjectArtifactMetadata.java

            return file;
        }
    
        @Override
        public String getRemoteFilename() {
            return getFilename();
        }
    
        @Override
        public String getLocalFilename(ArtifactRepository repository) {
            return getFilename();
        }
    
        private String getFilename() {
            return getArtifactId() + "-" + artifact.getVersion() + ".pom";
        }
    
        @Override
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 4K bytes
    - Click Count (0)
  3. src/test/java/jcifs/SmbWatchHandleTest.java

            when(fileNotifyInfo1.getFileName()).thenReturn("newfile.txt");
    
            when(fileNotifyInfo2.getAction()).thenReturn(FileNotifyInformation.FILE_ACTION_MODIFIED);
            when(fileNotifyInfo2.getFileName()).thenReturn("existingfile.txt");
    
            when(fileNotifyInfo3.getAction()).thenReturn(FileNotifyInformation.FILE_ACTION_REMOVED);
            when(fileNotifyInfo3.getFileName()).thenReturn("deletedfile.txt");
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 13.2K bytes
    - Click Count (1)
  4. src/test/java/jcifs/FileNotifyInformationTest.java

            })
            @DisplayName("Test getFileName with various file names")
            void testGetFileNameWithVariousValues(String fileName) {
                when(mockFileNotifyInfo.getFileName()).thenReturn(fileName);
                assertEquals(fileName, mockFileNotifyInfo.getFileName());
            }
    
            @Test
            @DisplayName("Test getFileName with null value")
            void testGetFileNameWithNull() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 18.1K bytes
    - Click Count (0)
  5. src/test/java/jcifs/internal/smb1/trans/nt/NtTransNotifyChangeResponseTest.java

            // Verify first notification
            assertEquals("file1.txt", notifications.get(0).getFileName());
            assertEquals(FileNotifyInformation.FILE_ACTION_ADDED, notifications.get(0).getAction());
    
            // Verify second notification
            assertEquals("file2.txt", notifications.get(1).getFileName());
            assertEquals(FileNotifyInformation.FILE_ACTION_REMOVED, notifications.get(1).getAction());
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 14.7K bytes
    - Click Count (0)
  6. src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyResponseTest.java

            assertEquals("file1", notifications.get(0).getFileName());
    
            assertEquals(2, notifications.get(1).getAction());
            assertEquals("file2", notifications.get(1).getFileName());
    
            assertEquals(3, notifications.get(2).getAction());
            assertEquals("file3", notifications.get(2).getFileName());
        }
    
        @DisplayName("Should throw exception for invalid structure size")
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 18.8K bytes
    - Click Count (0)
  7. build-logic/documentation/src/main/groovy/gradlebuild/docs/FindBrokenInternalLinks.java

            while (matcher.find()) {
                MatchResult xrefMatcher = matcher.toMatchResult();
                String link = xrefMatcher.group(1);
                String fileName = getFileName(link, sourceFile);
                File referencedFile = new File(getDocumentationRoot().get().getAsFile(), fileName);
                if (!referencedFile.exists()) {
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Thu Mar 12 23:22:57 GMT 2026
    - 12.8K bytes
    - Click Count (0)
  8. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/precommit/DependencyLicensesTask.java

            String fileName = getFileName(name, counters, type);
    
            if (counters.containsKey(fileName) == false) {
                throw new GradleException("Missing " + type + " for " + jarName + ", expected in " + fileName);
            }
    
            counters.put(fileName, true);
        }
    
        private String getFileName(String name, Map<String, ?> counters, String type) {
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Mon Jul 26 12:16:14 GMT 2021
    - 14.3K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/core/io/ResourceUtil.java

            File dir = null;
            final URL url = getResource(path);
            if ("file".equals(url.getProtocol())) {
                final int num = path.split("/").length;
                dir = new File(getFileName(url));
                for (int i = 0; i < num; ++i) {
                    dir = dir.getParentFile();
                }
            } else {
                dir = new File(JarFileUtil.toJarFilePath(url));
            }
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 14.7K bytes
    - Click Count (0)
  10. src/main/java/jcifs/internal/smb1/trans/nt/FileNotifyInformationImpl.java

         */
        public FileNotifyInformationImpl() {
        }
    
        @Override
        public int getAction() {
            return this.action;
        }
    
        @Override
        public String getFileName() {
            return this.fileName;
        }
    
        /**
         * Gets the offset to the next entry.
         *
         * @return the next entry offset in bytes
         */
        public int getNextEntryOffset() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 3.2K bytes
    - Click Count (0)
Back to Top