File tree Expand file tree Collapse file tree
symtabdefinitiontool/stdefgradle
src/test/java/de/monticore/symtabdefinitiontool/gradleplugin Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ dependencies {
1616 compileOnly(project(" :cdlang" ))
1717
1818 testImplementation " org.junit.jupiter:junit-jupiter-api:$junit_version "
19+ testImplementation " org.junit.jupiter:junit-jupiter-params:$junit_version "
1920 testRuntimeOnly " org.junit.jupiter:junit-jupiter-engine:$junit_version "
2021 testRuntimeOnly " org.junit.platform:junit-platform-launcher:$junit_version "
2122 testImplementation gradleTestKit()
Original file line number Diff line number Diff line change 1111import org .gradle .testkit .runner .GradleRunner ;
1212import org .gradle .testkit .runner .TaskOutcome ;
1313import org .junit .jupiter .api .BeforeEach ;
14- import org .junit .jupiter .api .Test ;
1514import org .junit .jupiter .api .io .TempDir ;
15+ import org .junit .jupiter .params .ParameterizedTest ;
16+ import org .junit .jupiter .params .provider .ValueSource ;
1617
1718import static org .junit .jupiter .api .Assertions .*;
1819
@@ -34,21 +35,8 @@ public void setup() throws IOException {
3435 modelDir .mkdirs ();
3536 }
3637
37- @ Test
38- public void testSTDef_v8_5 () throws IOException {
39- this .testSTDef ("8.5" );
40- }
41-
42- @ Test
43- public void testSTDef_v8_7 () throws IOException {
44- this .testSTDef ("8.7" );
45- }
46-
47- @ Test
48- public void testSTDef_v8_14_4 () throws IOException {
49- this .testSTDef ("8.14.4" );
50- }
51-
38+ @ ParameterizedTest
39+ @ ValueSource (strings = { "8.5" , "8.7" , "8.14" })
5240 void testSTDef (String version ) throws IOException {
5341 writeFile (settingsFile , "rootProject.name = 'hello-world'" );
5442 String projVersion = loadProperties ().getProperty ("version" );
You can’t perform that action at this time.
0 commit comments