Skip to content

Commit 8da28ec

Browse files
committed
Complete JUnit Jupiter release notes for 5.0.0-M1 in the User Guide
Issue: #311
1 parent f0ae029 commit 8da28ec

File tree

1 file changed

+27
-38
lines changed

1 file changed

+27
-38
lines changed

documentation/src/docs/asciidoc/release-notes-5.0.0-M1.adoc

Lines changed: 27 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ Platform, Jupiter, and Vintage, consult the dedicated subsections.
106106
* Introduced `ConfigurationParameters` which the `Launcher` supplies to engines via the
107107
`EngineDiscoveryRequest` and `ExecutionRequest`
108108
* The `Container` and `Leaf` abstractions have been removed from the `HierarchicalTestEngine`.
109+
* The `getName()` method has been removed from `TestIdentifier` and `TestDescriptor` in
110+
favor of retrieving an implementation specific name via the `TestSource`.
109111
* Test engines are now permitted to be completely dynamic in nature. In other words, a
110112
`TestEngine` is no longer required to create `TestDescriptor` entries during the
111113
_discovery phase_; a `TestEngine` may now optionally register containers and tests
@@ -125,6 +127,22 @@ Platform, Jupiter, and Vintage, consult the dedicated subsections.
125127

126128
* The `junit5` engine ID has been renamed to `junit-jupiter`.
127129
* `JUnit5TestEngine` has been renamed to `JupiterTestEngine`.
130+
* `Assertions` now provides the following support:
131+
** `assertEquals()` for primitive types
132+
** `assertEquals()` for doubles and floats with deltas
133+
** `assertArrayEquals()`
134+
** Expected and actual values are now supplied to the `AssertionFailedError`.
135+
* <<writing-tests-dynamic-tests,Dynamic Tests>>: tests can now be registered dynamically
136+
at runtime via lambda expressions.
137+
* `TestInfo` now provides access to tags via `getTags()`.
138+
* `@AfterEach` methods and _after_ callbacks are now invoked if an exception is thrown by
139+
a `@Test` method, a `@BeforeEach` method, or a _before_ callback.
140+
* `@AfterAll` methods and _after all_ callbacks are now guaranteed to be invoked.
141+
* Repeatable annotations such as `@ExtendWith` and `@Tag` are now discovered in
142+
superclasses within a test class hierarchy as well as on interfaces.
143+
* Extensions are now registered _top-down_ within a test class or interface hierarchy.
144+
* Test and container execution <<extensions-conditions-deactivation,_conditions_ can now
145+
be deactivated>>.
128146
* `InstancePostProcessor` has been renamed to `TestInstancePostProcessor`.
129147
** `TestInstancePostProcessor` implementations are now properly applied within `@Nested`
130148
test class hierarchies.
@@ -134,51 +152,22 @@ Platform, Jupiter, and Vintage, consult the dedicated subsections.
134152
** New `ParameterContext` which is passed to the `supports()` and `resolve()` methods of
135153
`ParameterResolver` extensions.
136154
** Resolution of primitive types is now supported for `ParameterResolver` extensions.
155+
* The `ExtensionPointRegistry` and `ExtensionRegistrar` have been removed in favor of
156+
declarative registration via `@ExtendWith`.
137157
* `BeforeAllExtensionPoint` has been renamed to `BeforeAllCallback`.
138158
* `AfterAllExtensionPoint` has been renamed to `AfterAllCallback`.
139159
* `BeforeEachExtensionPoint` has been renamed to `BeforeEachCallback`.
140160
* `BeforeAllExtensionPoint` has been renamed to `BeforeAllCallback`.
141161
* New `BeforeTestExecutionCallback` and `AfterTestExecutionCallback` extension APIs.
142162
* `ExceptionHandlerExtensionPoint` has been renamed to `TestExecutionExceptionHandler`.
143163
* Test exceptions are now supplied to extensions via the `TestExtensionContext`.
144-
145-
////
146-
* Introduce deactivation mechanism for conditions
147-
148-
* Introduce support for type safety in ExtensionContext.Store
149-
* Return Optional from ExtensionContext.getElement()
150-
151-
* Ensure afters are invoked if exception is thrown by test or a before
152-
* Ensure AfterAlls are invoked if exception is thrown by a BeforeAll
153-
154-
* Rename Namespace.of() to Namespace.create()
155-
156-
* Add assertEquals for primitive types.
157-
* Add assertEquals() for doubles & floats with delta
158-
* Introduce assertArrayEquals() methods in Assertions
159-
* Assertions: Pass expected/actual values to AssertionFailedError
160-
161-
* Dynamic Tests
162-
163-
* Introduce getTest[Class|Method]() in TestInfo & ExtensionContext
164-
* Remove getName() from TestInfo, ExtensionContext, TestIdentifier, TestDescriptor
165-
166-
* Generate proper default display name for test methods
167-
* Document display names and defaults across the project
168-
169-
* Ensure that repeatable annotations are discovered in superclasses
170-
* Ensure extensions are registered top-down w/in class hierarchy
171-
* Find repeatable annotations on interfaces
172-
173-
* `ExtensionContext.getElement()` now returns `Optional<AnnotatedElement>`
174-
175-
* Rename test lifecycle callback extension APIs
176-
* Introduce before & after test method callback APIs
177-
* Remove ExtensionPoint API in favor of Extension
178-
* Remove ExtensionPointRegistry and ExtensionRegistrar
179-
180-
* TestInfo.getTags()
181-
////
164+
* `ExtensionContext.Store` now supports type-safe variants of many of its methods.
165+
* `ExtensionContext.getElement()` now returns an `Optional`.
166+
* `Namespace.of()` has been renamed to `Namespace.create()`.
167+
* `TestInfo` and `ExtensionContext` have new `getTestClass()` and `getTestMethod()`
168+
methods.
169+
* The `getName()` method has been removed from `TestInfo` and `ExtensionContext` in favor
170+
of retrieving a context specific name via the current test class or test method.
182171

183172
[[release-notes-5.0.0-m1-junit-vintage]]
184173
===== JUnit Vintage

0 commit comments

Comments
 (0)