Skip to content

Commit

Permalink
chore(J21 compat): rename java 11 example to java 17 example
Browse files Browse the repository at this point in the history
Signed-off-by: l-1squared <[email protected]>
  • Loading branch information
l-1squared committed Oct 25, 2024
1 parent bb3f785 commit 338d237
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
4 changes: 0 additions & 4 deletions example-projects/java11/src/main/java/module-info.java

This file was deleted.

File renamed without changes.
4 changes: 4 additions & 0 deletions example-projects/java17/src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module jgiven.exampleprojects.java17 {
exports com.tngtech.jgiven.exampleprojects.java17;
requires java.base;
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.tngtech.jgiven.exampleprojects.java11;
package com.tngtech.jgiven.exampleprojects.java17;

import com.tngtech.jgiven.junit.SimpleScenarioTest;
import org.junit.Test;
import com.tngtech.jgiven.exampleprojects.java11.Java11;
import com.tngtech.jgiven.exampleprojects.java17.Java17;

public class Java11Test extends SimpleScenarioTest<Java11Test.Steps> {
public class Java17Test extends SimpleScenarioTest<Java17Test.Steps> {

@Test
public void example_scenario() {
Expand All @@ -20,7 +20,7 @@ public void some_context() {
}

public void some_action() {
Java11.test("f");
Java17.test("f");
}

public void some_outcome() {
Expand Down
2 changes: 1 addition & 1 deletion scripts/source_files/helper_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function updateAllVersionInformation() {
printf "Done.\n"

printf "Updating version in maven files..."
for file in "example-projects/java11/pom.xml" \
for file in "example-projects/java17/pom.xml" \
"example-projects/maven/pom.xml" \
"jgiven-maven-plugin/src/test/resources/sampleProject/pom.xml"
do
Expand Down

0 comments on commit 338d237

Please sign in to comment.