- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 194 for getPath (0.05 seconds)
-
src/main/java/org/codelibs/fess/util/ResourceUtil.java
return getPath("WEB-INF/", "classes", names); } /** * Gets the path to original files directory. * * @param names the path components to append to the orig directory * @return the Path object pointing to the original files directory */ public static Path getOrigPath(final String... names) { return getPath("WEB-INF/", "orig", names); }Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Jul 17 08:28:31 GMT 2025 - 14.1K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/HandlerTest.java
assertEquals("host", url1.getHost()); assertEquals(445, url1.getPort()); assertEquals("/share", url1.getPath()); assertEquals("smb", url2.getProtocol()); assertEquals("host", url2.getHost()); assertEquals(1234, url2.getPort()); assertEquals("/share/file.txt", url2.getPath()); assertEquals("smb", url3.getProtocol()); assertEquals("host", url3.getHost());
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 5.4K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/SmbFileFilterTest.java
when(mockFile.getPath()).thenReturn("/share/dir/"); RecordingFilter filter = new RecordingFilter(); filter.accept(mockFile); // Verify the filter stored the reference // assertSame may not be necessary but demonstrates captured file // we simply check that getPath was called verify(mockFile, times(1)).getPath(); } }
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 3.2K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbFilenameFilterTest.java
// Stub the getPath method to return a specific value when(mockDir.getPath()).thenReturn("/share/folder/"); // Implementation uses dir.getPath() to check if file should be in that path SmbFilenameFilter filter = (dir, name) -> { if (dir == null) return false; String path = dir.getPath();Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7.3K bytes - Click Count (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/Sources.java
this.path = requireNonNull(path, "path").normalize(); this.location = location != null ? location : this.path.toString(); } @Override @Nullable public Path getPath() { return path; } @Override @Nonnull public InputStream openStream() throws IOException { return Files.newInputStream(path); }
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Mon Sep 29 14:45:25 GMT 2025 - 8.2K bytes - Click Count (0) -
src/test/java/jcifs/internal/RequestWithPathTest.java
assertEquals(expectedPath, testImplementation.getPath()); } @Test @DisplayName("Test setPath updates path correctly") void testSetPath() { // Test with mock String newPath = "/new/path/file.txt"; doNothing().when(requestWithPath).setPath(newPath); requestWithPath.setPath(newPath); verify(requestWithPath, times(1)).setPath(newPath);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12.2K bytes - Click Count (0) -
compat/maven-compat/src/test/java/org/apache/maven/repository/LegacyRepositorySystemTest.java
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Dec 16 13:41:14 GMT 2025 - 11.1K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultArtifactManager.java
Path path = paths.get(id); if (path == null && artifact instanceof DefaultArtifact defaultArtifact) { path = defaultArtifact.getArtifact().getPath(); } return Optional.ofNullable(path); } @Override public void setPath(@Nonnull ProducedArtifact artifact, Path path) { String id = id(requireNonNull(artifact, "artifact cannot be null"));
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Sep 17 16:01:38 GMT 2025 - 4.4K bytes - Click Count (0) -
src/test/java/jcifs/tests/persistent/PersistentHandleManagerTest.java
HandleInfo info1 = manager.getHandleByGuid(guid1); HandleInfo info2 = manager.getHandleByGuid(guid2); assertNotNull(info1); assertNotNull(info2); assertNotEquals(info1.getPath(), info2.getPath()); assertNotEquals(info1.getType(), info2.getType()); }
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 21 04:51:33 GMT 2025 - 6.6K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2FindFirst2Test.java
assertEquals("\\test\\path\\", trans2FindFirst2.getPath()); } @Test @DisplayName("Test constructor with root path") void testConstructorWithRootPath() { // Test root path trans2FindFirst2 = new Trans2FindFirst2(mockConfig, "\\", "*.*", 0x16, 15, 4096); assertEquals("\\", trans2FindFirst2.getPath()); } @ParameterizedTestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 10.8K bytes - Click Count (0)