Releases: mikemybytes/junit5-formatted-source
1.0.1
Changelog
This is a maintenance release - there are no functional changes. From a user's point of view, only the Javadocs have been slightly improved.
Also, this is the first version built with Java 21 (still targeting Java 11 bytecode).
π§° Tasks
- f3dc132 deps: bump org.jreleaser:jreleaser-maven-plugin (#59), closes #59
- 9a1971d deps-dev: bump org.assertj:assertj-core from 3.25.2 to 3.25.3 (#64), closes #64
- 2dbde6f deps: bump org.apache.maven.plugins:maven-project-info-reports-plugin (#52), closes #52
- ab20828 deps: bump org.apache.maven.plugins:maven-compiler-plugin (#56), closes #56
- 36b7b8e deps: bump org.apache.maven.plugins:maven-surefire-plugin (#61), closes #61
- 4dcd2ce deps-dev: bump org.assertj:assertj-core from 3.24.2 to 3.25.2 (#62), closes #62
- b6ad322 deps: bump org.apache.maven.plugins:maven-javadoc-plugin (#54), closes #54
- f07acd7 deps: bump org.codehaus.mojo:versions-maven-plugin (#51), closes #51
- 3b18036 deps: bump actions/setup-java from 3 to 4 (#53), closes #53
- 4871bb5 deps: bump org.apache.maven.plugins:maven-compiler-plugin (#55), closes #55
- d4ac036 deps: bump org.apache.maven.plugins:maven-surefire-plugin (#49), closes #49
- e27c1c0 deps: bump org.codehaus.mojo:versions-maven-plugin (#45), closes #45
- bcfad7e deps: bump actions/checkout from 3 to 4 (#42), closes #42
- cb0742d deps: bump org.apache.maven.plugins:maven-enforcer-plugin (#43), closes #43
- 8e5c8ef deps: bump org.apache.maven.plugins:maven-javadoc-plugin (#44), closes #44
- b80d4b0 deps: bump jreleaser-maven-plugin from 1.6.0 to 1.7.0 (#39), closes #39
- 070ed54 deps: bump maven-surefire-plugin from 3.1.0 to 3.1.2 (#36), closes #36
- 58f6086 deps: bump maven-project-info-reports-plugin from 3.4.4 to 3.4.5 (#37), closes #37
- b829be2 deps: bump versions-maven-plugin from 2.15.0 to 2.16.0 (#38), closes #38
- ae996e9 deps: bump maven-release-plugin from 3.0.0 to 3.0.1 (#35), closes #35
- 8f0588c deps: bump maven-project-info-reports-plugin from 3.4.3 to 3.4.4 (#34), closes #34
- c7f2a0c deps: bump maven-source-plugin from 3.2.1 to 3.3.0 (#33), closes #33
- 635efcf deps: bump maven-surefire-plugin from 3.0.0 to 3.1.0 (#32), closes #32
π Build
- 0f92f09 #65 Use latest Maven Wrapper for build and release processes (#66), closes #65 #66
- 70efa8f Build with Java 21 (#46), closes #46
π Documentation
Contributors
We'd like to thank the following people for their contributions:
- GitHub
- Mike Kowalski
- dependabot[bot] (@dependabot[bot])
1.0.0
Changelog
This is the first "officially stable" version of the library! π Project's major version has been bumped to emphasize API stability. There are no compatibility-breaking changes inside.
FormattedSource now supports an alternative way of referring to the format's arguments (see #25). Instead of using their indexes (e.g. {1}
), it's possible to define a fixed argumentPlaceholder
string that will be used for all the arguments. The library will then follow the order of test method parameters:
@FormattedSourceTest(
format = "? + ? = ?",
argumentPlaceholder = "?",
textBlock = """
1 + 2 = 3
3 + 4 = 7
"""
)
void calculatesSum(int a, int b, int sum) {
// first: a = 1, b = 2, sum = 3
// second: a = 3, b = 4, sum = 7
}
More details about the new feature can be found in the User Guide.
π Features
- 24085ea #25 Support positional argument placeholders (#26), closes #25 #26
- 2209854 Support Maven Wrapper (3.8.6)
π Fixes
- 6e84a52 Add project description and URL to all POM files
π§° Tasks
- 426472b deps: bump jreleaser-maven-plugin from 1.5.1 to 1.6.0 (#31), closes #31
- a00c1c6 deps: bump maven-deploy-plugin from 3.1.0 to 3.1.1 (#28), closes #28
- 6245b83 deps: bump maven-project-info-reports-plugin from 3.4.2 to 3.4.3 (#27), closes #27
- 7553d19 deps: bump maven-install-plugin from 3.1.0 to 3.1.1 (#29), closes #29
- 9373c5e deps: bump maven-enforcer-plugin from 3.2.1 to 3.3.0 (#30), closes #30
- fc1ae8e deps: bump jreleaser-maven-plugin from 1.4.0 to 1.5.1 (#21), closes #21
- bbae86c deps: bump maven-help-plugin from 3.3.0 to 3.4.0 (#22), closes #22
- c277489 deps: bump maven-javadoc-plugin from 3.4.1 to 3.5.0 (#16), closes #16
- 45f2273 deps: bump maven-release-plugin from 3.0.0-M7 to 3.0.0 (#23), closes #23
- 33d96fb deps: bump maven-surefire-plugin from 3.0.0-M9 to 3.0.0 (#24), closes #24
- 4b238c0 deps: bump versions-maven-plugin from 2.14.2 to 2.15.0 (#20), closes #20
- 72dc12b deps: bump maven-deploy-plugin from 3.0.0 to 3.1.0 (#12), closes #12
- 526e46a deps: bump maven-surefire-plugin from 3.0.0-M8 to 3.0.0-M9 (#17), closes #17
- 5ed4674 deps: bump maven-compiler-plugin from 3.10.1 to 3.11.0 (#18), closes #18
- 884a284 deps: bump maven-install-plugin from 3.0.1 to 3.1.0 (#15), closes #15
- c8d20d1 deps: bump maven-project-info-reports-plugin from 3.4.1 to 3.4.2 (#10), closes #10
- 31228bb deps: bump versions-maven-plugin from 2.13.0 to 2.14.2 (#11), closes #11
- 6ce5d33 deps-dev: bump assertj-core from 3.23.1 to 3.24.2 (#14), closes #14
- 496ecdd deps: bump maven-surefire-plugin from 3.0.0-M7 to 3.0.0-M8 (#13), closes #13
- 0d3dfa5 #9 Setup Dependabot version updates, closes #9
- 7559503 Enforce min Java and Maven versions
π Documentation
- bb4c5b4 Documentation fixes
- ed8a427 #6 Describe the "no escaping" policy for quote characters, closes #6
- 9181e00 Describe usage details in the User Guide
- 7971fb1 Fix Maven Wrapper invocation
- 5a063d1 Document Java module name
Contributors
We'd like to thank the following people for their contributions:
- GitHub
- Mike Kowalski
- dependabot[bot] (@dependabot[bot])
0.2.0
Changelog
This version introduces two configuration properties known from JUnit5 @CsvSource
- nullValues
and emptyValue
.
With nullValues
it's now possible to provide additional text values that should be interpreted as null references:
@FormattedSourceTest(
// these values would be interpreted as null
// additionally to an empty unquoted value (default)
nullValues = {"N/A", "null"},
format = "{0} is null while {1} is not",
textBlock = """
is null while '' is not
N/A is null while text is not
'null' is null while NULL is not
'N/A' is null while n/a is not
""")
void supportsCustomNullValues(String a, String b) {
assertThat(a).isNull();
assertThat(b).isNotNull();
}
Using emptyValue
one may provide a text value that should replace empty parameter values instead of the default empty string:
@FormattedSourceTest(
// this value will replace the good-old empty string
emptyValue = "<EMPTY>",
format = "is {0} empty? {1}",
textBlock = """
is '' empty? true
is ' ' empty? false
""")
void supportsCustomEmptyValue(String input, boolean expectedEmpty) {
assertThat("<EMPTY>".equals(input)).isEqualTo(expectedEmpty);
}
π Features
- f23e831 Allow setting project version using script
- 55dc414 #2 Support empty value customization, closes #2
- a2f1a71 #3 Support custom null values, closes #3
π Build
- a2f8303 Exclude script changes from GHA builds
π Documentation
- 3078248 Remove limitations section
- a98759e Document annotation defaults
- e73509c Fix build status shield
Contributors
We'd like to thank the following people for their contributions:
- Mike Kowalski
0.1.2
0.1.1
0.1.0
Changelog
This release brings a feature known from JUnit 5 @CsvSource
- controlling leading and trailing whitespace trimming via the ignoreLeadingAndTrailingWhitespace
parameter. Also, formats ending with some text (instead of an argument placeholder) should now be correctly supported.
π Features
π Fixes
- dcd1bfe Fix last argument's value parsing
π Documentation
- 3664715 Introduce project status shields
0.0.2
Changelog
This release brings Java modules (JPMS) support, new unit tests for the library code (internal), and initial configuration changes for the upcoming release process automation.
π Features
- 86c4d1e Automate release process with jreleaser (not yet in use)
- 817b876 Add more tests for the format analysis stage
- 305edf3 #7 Add Java module descriptors
0.0.1
Initial release π
Full Changelog: https://github.com/mikemybytes/junit5-formatted-source/commits/0.0.1