@@ -21,42 +21,6 @@ import spock.lang.Unroll
2121
2222class ConfigureJavaFormatterXmlTest extends Specification {
2323
24- private static final String EXTERNAL_DEPENDENCIES_NO_PJF = """ \
25- <project version="4">
26- <component name="ExternalDependencies">
27- <plugin id="CheckStyle-IDEA"/>
28- </component>
29- </project>
30- """ . stripIndent(true )
31-
32- private static final String EXTERNAL_DEPENDENCIES_WITH_PJF = """ \
33- <project version="4">
34- <component name="ExternalDependencies">
35- <plugin id="CheckStyle-IDEA"/>
36- <plugin id="palantir-java-format"/>
37- </component>
38- </project>
39- """ . stripIndent(true )
40-
41- private static final String EXTERNAL_DEPENDENCIES_WITH_PINNED_PJF = """ \
42- <project version="4">
43- <component name="ExternalDependencies">
44- <plugin id="CheckStyle-IDEA"/>
45- <plugin id="palantir-java-format" min-version="1.0.0"/>
46- </component>
47- </project>
48- """ . stripIndent(true )
49-
50-
51- private static final String EXPECTED_EXTERNAL_DEPENDENCIES = """ \
52- <project version="4">
53- <component name="ExternalDependencies">
54- <plugin id="CheckStyle-IDEA"/>
55- <plugin id="palantir-java-format" min-version="9.9.9"/>
56- </component>
57- </project>
58- """ . stripIndent(true )
59-
6024 private static final String EXISTING_CLASS_PATH = """
6125 <root>
6226 <component name="PalantirJavaFormatSettings">
@@ -312,20 +276,6 @@ class ConfigureJavaFormatterXmlTest extends Specification {
312276 action << ACTIONS_ON_SAVE
313277 }
314278
315- @Unroll
316- def ' can update externalDependencies file' (input) {
317- def node = new XmlParser (). parseText(input)
318-
319- when :
320- ConfigureJavaFormatterXml . configureExternalDependencies(node, " 9.9.9" )
321-
322- then :
323- xmlToString(node) == EXPECTED_EXTERNAL_DEPENDENCIES
324-
325- where :
326- input << [EXTERNAL_DEPENDENCIES_NO_PJF , EXTERNAL_DEPENDENCIES_WITH_PINNED_PJF , EXTERNAL_DEPENDENCIES_WITH_PJF ]
327- }
328-
329279 private static String xmlSubcomponentToString (Node node , String name ) {
330280 xmlToString(node. children(). find { it. @name == name }). strip()
331281 }
0 commit comments