File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
testlib/src/test/java/com/diffplug/spotless/pom Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 16
16
package com .diffplug .spotless .pom ;
17
17
18
18
import org .junit .jupiter .api .Test ;
19
+ import org .junit .jupiter .params .ParameterizedTest ;
20
+ import org .junit .jupiter .params .provider .ValueSource ;
19
21
20
22
import com .diffplug .spotless .*;
21
23
@@ -27,10 +29,11 @@ public void testSortPomWithDefaultConfig() {
27
29
StepHarness .forStep (step ).testResource ("pom/pom_dirty.xml" , "pom/pom_clean_default.xml" );
28
30
}
29
31
30
- @ Test
31
- public void testSortPomWithVersion () {
32
+ @ ParameterizedTest
33
+ @ ValueSource (strings = {"3.2.1" , "3.3.0" , "3.4.1" , "4.0.0" })
34
+ public void testSortPomWithVersion (String version ) {
32
35
SortPomCfg cfg = new SortPomCfg ();
33
- cfg .version = "4.0.0" ;
36
+ cfg .version = version ;
34
37
FormatterStep step = SortPomStep .create (cfg , TestProvisioner .mavenCentral ());
35
38
StepHarness .forStep (step ).testResource ("pom/pom_dirty.xml" , "pom/pom_clean_default.xml" );
36
39
}
You can’t perform that action at this time.
0 commit comments