Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for testGetLocation (0.24 sec)

  1. 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());
    Java
    - Registered: Sun Apr 21 03:35:09 GMT 2024
    - Last Modified: Sat Apr 15 17:24:20 GMT 2023
    - 2K bytes
    - Viewed (0)
  2. maven-builder-support/src/test/java/org/apache/maven/building/StringSourceTest.java

            try (InputStream is = source.getInputStream();
                    Scanner scanner = new Scanner(is)) {
                assertEquals("Hello World!", scanner.nextLine());
            }
        }
    
        @Test
        void testGetLocation() {
            StringSource source = new StringSource("Hello World!");
            assertEquals("(memory)", source.getLocation());
    
            source = new StringSource("Hello World!", "LOCATION");
    Java
    - Registered: Sun Apr 21 03:35:09 GMT 2024
    - Last Modified: Sat Apr 15 17:24:20 GMT 2023
    - 1.8K bytes
    - Viewed (0)
  3. 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
    Java
    - Registered: Sun Apr 21 03:35:09 GMT 2024
    - Last Modified: Mon Feb 26 17:04:44 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  4. maven-builder-support/src/test/java/org/apache/maven/building/DefaultProblemTest.java

            assertEquals("", problem.getSource());
    
            problem = new DefaultProblem(null, null, "SOURCE", -1, -1, null);
            assertEquals("SOURCE", problem.getSource());
        }
    
        @Test
        void testGetLocation() {
            DefaultProblem problem = new DefaultProblem(null, null, null, -1, -1, null);
            assertEquals("", problem.getLocation());
    
            problem = new DefaultProblem(null, null, "SOURCE", -1, -1, null);
    Java
    - Registered: Sun Apr 21 03:35:09 GMT 2024
    - Last Modified: Sat Apr 15 17:24:20 GMT 2023
    - 4.9K bytes
    - Viewed (0)
Back to top