[MGNLUI-4995] Write test suite for UIFrameworkView interface Created: 04/Feb/19  Updated: 17/Mar/20  Resolved: 01/Jul/19

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

Type: Task Priority: Neutral
Reporter: Aleksandr Pchelintcev Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Epic Link: UI framework: basic features
Story Points: 5

 Description   

UIFrameworkView interface is connects the views with the underlying session storages and provides the injection magic.

It needs to be tested. Since it requires Vaadin UI, session etc to be in place - it might be not that trivial to write a unit test for the interface. However, there is already a test utility called StubVaadinSession, which might already provide most of the required (if not all) implementation.

After we are able to bootstrap the framework views within a JUnit test - we would need to test the basic use cases like:

  • view/sub-view creation
  • bean storage clean-up upon view destruction (recursive!)
  • new DI parameter resolvers (contexts and DS components)


 Comments   
Comment by Aleksandr Pchelintcev [ 01/Jul/19 ]

https://git.magnolia-cms.com/projects/PLATFORM/repos/ui/commits/04f6d679d82a3347cdb3d90920dfc609150a469c

Generated at Mon Feb 12 09:22:11 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.