Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for StringSource (0.92 sec)

  1. compat/maven-builder-support/src/main/java/org/apache/maven/building/StringSource.java

            if (this == obj) {
                return true;
            }
    
            if (obj == null) {
                return false;
            }
    
            if (!StringSource.class.equals(obj.getClass())) {
                return false;
            }
    
            StringSource other = (StringSource) obj;
            return this.content.equals(other.content);
        }
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Wed Jan 15 18:51:29 UTC 2025
    - 3K bytes
    - Viewed (0)
  2. compat/maven-builder-support/src/test/java/org/apache/maven/building/StringSourceTest.java

        void testGetInputStream() throws Exception {
            StringSource source = new StringSource("Hello World!");
    
            try (InputStream is = source.getInputStream();
                    Scanner scanner = new Scanner(is)) {
                assertEquals("Hello World!", scanner.nextLine());
            }
        }
    
        @Test
        void testGetLocation() {
            StringSource source = new StringSource("Hello World!");
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.8K bytes
    - Viewed (0)
Back to top