@Test void buildPropertiesElementEmptyProperties() throws ParserConfigurationException { Element properties = BuilderUtils.buildPropertiesElement(new HashMap<>(), DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument()); NodeList propertyNodes = properties.getElementsByTagName("l7:Property"); assertEquals(0, propertyNodes.getLength()); }
public static Element buildPropertiesElement(final Map<String, Object> properties, final Document document) { return buildPropertiesElement(properties, document, PROPERTIES); }
BuilderUtils { public static Element buildPropertiesElement(final Map<String, Object> properties, final Document document) { return buildPropertiesElement(properties, document, PROPERTIES); } }
BuilderUtils { public static Element buildPropertiesElement(final Map<String, Object> properties, final Document document) { return buildPropertiesElement(properties, document, PROPERTIES); } private  BuilderUtils(); }
BuilderUtils { public static Element buildPropertiesElement(final Map<String, Object> properties, final Document document) { return buildPropertiesElement(properties, document, PROPERTIES); } private  BuilderUtils(); static void buildAndAppendPropertiesElement(final Map<String, Object> properties, final Document document, final Element elementToAppendInto); static Element buildPropertiesElement(final Map<String, Object> properties, final Document document); static Element buildPropertiesElement(final Map<String, Object> properties, final Document document, final String propertiesElementName); @NotNull static Element createPropertyElement(Document document, String key, Object value); static Map<String, Object> mapPropertiesElements(final Element propertiesElement, final String propertiesElementName); static String insertPrefixToEnvironmentVariable(String environmentVariable, String prefix); static String removeAllSpecialChars(String str); }
BuilderUtils { public static Element buildPropertiesElement(final Map<String, Object> properties, final Document document) { return buildPropertiesElement(properties, document, PROPERTIES); } private  BuilderUtils(); static void buildAndAppendPropertiesElement(final Map<String, Object> properties, final Document document, final Element elementToAppendInto); static Element buildPropertiesElement(final Map<String, Object> properties, final Document document); static Element buildPropertiesElement(final Map<String, Object> properties, final Document document, final String propertiesElementName); @NotNull static Element createPropertyElement(Document document, String key, Object value); static Map<String, Object> mapPropertiesElements(final Element propertiesElement, final String propertiesElementName); static String insertPrefixToEnvironmentVariable(String environmentVariable, String prefix); static String removeAllSpecialChars(String str);  }