Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for findChildElement (0.09 sec)

  1. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/InferenceStrategyTest.java

                Element dependencies = DomUtils.findChildElement(moduleBRoot, "dependencies");
                Element dependency = DomUtils.findChildElement(dependencies, "dependency");
    
                // Verify dependency elements exist before inference
                assertNotNull(DomUtils.findChildElement(dependency, "groupId"));
                assertNotNull(DomUtils.findChildElement(dependency, "artifactId"));
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 18:03:26 UTC 2025
    - 35.2K bytes
    - Viewed (0)
  2. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/CompatibilityFixStrategyTest.java

                Editor editor = new Editor(document);
                Element root = editor.root();
                Element build = DomUtils.findChildElement(root, "build");
                Element pluginManagement = DomUtils.findChildElement(build, "pluginManagement");
                Element plugins = DomUtils.findChildElement(pluginManagement, "plugins");
                var pluginElements = plugins.children("plugin").toList();
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 18:03:26 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  3. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/DomUtilsTest.java

                """;
    
            Document doc = Document.of(pomXml);
            Element root = doc.root();
    
            Element buildElement = DomUtils.findChildElement(root, "build");
            assertNotNull(buildElement, "Should find build element");
    
            Element pluginsElement = DomUtils.findChildElement(buildElement, "plugins");
            assertNotNull(pluginsElement, "Should find plugins element");
        }
    
        @Test
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 18:03:26 UTC 2025
    - 31.3K bytes
    - Viewed (0)
  4. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/ModelUpgradeStrategyTest.java

                // Verify child elements namespace updated recursively
                Element dependencies = DomUtils.findChildElement(root, "dependencies");
                assertNotNull(dependencies);
                assertEquals(expectedNamespaceUri, dependencies.namespaceURI());
    
                Element dependency = DomUtils.findChildElement(dependencies, "dependency");
                assertNotNull(dependency);
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 18:03:26 UTC 2025
    - 38.8K bytes
    - Viewed (0)
  5. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/DomUtils.java

         *
         * @param parent the parent element
         * @param name the child element name to find
         * @return the child element if found, null otherwise
         *
         */
        public static Element findChildElement(Element parent, String name) {
            return parent.child(name).orElse(null);
        }
    
        /**
         * Serializes a domtrip Document to XML string with preserved formatting.
         *
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 18:03:26 UTC 2025
    - 7.4K bytes
    - Viewed (0)
Back to top