[MAGNOLIA-8280] Simplify setting up a Magnolia context in JUnit 5 tests Created: 17/Jan/22  Updated: 20/Jan/22  Resolved: 20/Jan/22

Status: Closed
Project: Magnolia
Component/s: testing
Affects Version/s: None
Fix Version/s: 6.2.16

Type: Improvement Priority: Neutral
Reporter: Michael Duerig Assignee: Michael Duerig
Resolution: Fixed Votes: 0
Labels: artt
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
relates to MAGNOLIA-8188 Lightweight repository setup for tests Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[X]* Doc/release notes changes? Comment present?
[X]* Downstream builds green?
[X]* Solution information and context easily available?
[X]* Tests
[X]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Epic Link: Basic JUnit 5

 Description   

Context

The ComponentProviderSupport extension introduced with MAGNOLIA-8188 sets up a default Magnolia context. Many tests like ContentTypeFilterTest and SimpleContextTest need to modify the context or setup their own context completely.

Proposal

Analogue to ComponentProviderSupport, implement a JUnit 5 extension ContextSupport that allows setting up Magnolia contexts.


Generated at Mon Feb 12 04:31:16 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.