void () { XmlCodeStyleSettings xmlSettings = getSettings().getCustomSettings(XmlCodeStyleSettings.class); xmlSettings.XML_SPACE_INSIDE_EMPTY_TAG = true; doTextTest("<test/>", "<test />"); xmlSettings.XML_SPACE_INSIDE_EMPTY_TAG = false; doTextTest("<test />", "<test/>"); }