Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: fix MenuAccessControl mocking #2863

Merged
merged 2 commits into from
Oct 24, 2024
Merged

Conversation

mcollovati
Copy link
Contributor

Mock object should call MenuAccessControl.canAccessView default method, that also requires VaadinRequest thread local to be set.

Mock object should call MenuAccessControl.canAccessView default method,
that also requires VaadinRequest thread local to be set.
Copy link

sonarcloud bot commented Oct 24, 2024

Copy link

codecov bot commented Oct 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.64%. Comparing base (83717bc) to head (8ce08ee).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2863   +/-   ##
=======================================
  Coverage   92.64%   92.64%           
=======================================
  Files          83       83           
  Lines        2840     2840           
  Branches      728      728           
=======================================
  Hits         2631     2631           
  Misses        157      157           
  Partials       52       52           
Flag Coverage Δ
unittests 92.64% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ZheSun88 ZheSun88 enabled auto-merge (squash) October 24, 2024 07:27
@ZheSun88 ZheSun88 merged commit 5500004 into main Oct 24, 2024
15 checks passed
@ZheSun88 ZheSun88 deleted the test/fix-menuaccesscontrol-mocking branch October 24, 2024 07:29
ZheSun88 pushed a commit that referenced this pull request Oct 24, 2024
* test: fix MenuAccessControl mocking

Mock object should call MenuAccessControl.canAccessView default method,
that also requires VaadinRequest thread local to be set.

* format
ZheSun88 pushed a commit that referenced this pull request Oct 24, 2024
test: fix MenuAccessControl mocking (#2863)

* test: fix MenuAccessControl mocking

Mock object should call MenuAccessControl.canAccessView default method,
that also requires VaadinRequest thread local to be set.

* format

Co-authored-by: Marco Collovati <marco@vaadin.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants