You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
== General changes [(code)](https://github.com/dmitrij-drandarov/JUnit5-Quick-Start-Guide-and-Advanced/blob/master/src/test/java/com/drandarov/junit5/JUnit5_00_GeneralChanges.java)
70
+
== General changes link:src/test/java/com/drandarov/junit5/JUnit5_00_GeneralChanges.java[(code)]
70
71
71
72
72
73
=== Syntax
@@ -149,7 +150,7 @@ void assumptionsTest() {
149
150
```
150
151
151
152
152
-
== New features: Basics [(code)](https://github.com/dmitrij-drandarov/JUnit5-Quick-Start-Guide-and-Advanced/blob/master/src/test/java/com/drandarov/junit5/JUnit5_01_NewFeaturesBasics.java)
153
+
== New features: Basics link:src/test/java/com/drandarov/junit5/JUnit5_01_NewFeaturesBasics.java[(code)]
153
154
154
155
### General
155
156
Here I want to introduce some basics for the new features available in the new version.
@@ -166,8 +167,7 @@ There is a new pretty annotation called `@DisplayName` which is supposed to impr
== New features: Advanced [(code)](https://github.com/dmitrij-drandarov/JUnit5-Quick-Start-Guide-and-Advanced/blob/master/src/test/java/com/drandarov/junit5/JUnit5_02_NewFeaturesAdvanced.java)
300
+
== New features: Advanced link:src/test/java/com/drandarov/junit5/JUnit5_02_NewFeaturesAdvanced.java[(code)]
302
301
303
302
### Test-Parameters
304
303
Building upon the `ParameterResolver` paragraph of the last chapter let's look at implementing your own `ParameterResolver`.
@@ -388,7 +387,7 @@ public class ParameterIndex_ParameterResolver implements ParameterResolver {
388
387
### Test-Factories
389
388
Another nice feature are the new Test-Factories.
390
389
These are annotated with `@TestFactory` instead of `@Test`.
391
-
Their return type is some kind of collection of `DynamicTest`s.
390
+
Their return type is some kind of collection of ``DynamicTest``s.
392
391
The class `DynamicTest` provides several static methods to create those.
393
392
You basically have to provide test data and based on it a display name as well as some kind of `Executable`.
394
393
In my example you can see me using the `stream()`-method of said class.
@@ -698,12 +697,9 @@ public class BenchmarkExtension implements BeforeAllCallback, BeforeTestExecutio
698
697
699
698
Of course I could have also included `@Benchmarked` in a separate `@BenchmarkedTest` annotation that would have extended `@Test` as well saving that one line.
0 commit comments