- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for testGetLocation (0.1 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
compat/maven-builder-support/src/test/java/org/apache/maven/building/UrlSourceTest.java
try (InputStream is = source.getInputStream(); Scanner scanner = new Scanner(is)) { assertEquals("Hello World!", scanner.nextLine()); } } @Test void testGetLocation() throws Exception { URL txtFile = new File("target/test-classes/source.txt").toURI().toURL(); UrlSource source = new UrlSource(txtFile); assertEquals(txtFile.toExternalForm(), source.getLocation());
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 2K bytes - Click Count (0) -
compat/maven-builder-support/src/test/java/org/apache/maven/building/FileSourceTest.java
try (InputStream is = source.getInputStream(); Scanner scanner = new Scanner(is)) { assertEquals("Hello World!", scanner.nextLine()); } } @Test void testGetLocation() { File txtFile = new File("target/test-classes/source.txt"); FileSource source = new FileSource(txtFile); assertEquals(txtFile.getAbsolutePath(), source.getLocation()); } @Test
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 2.2K bytes - Click Count (0)