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

CARDS-2131: Increase test coverage cards-permissions #1417

Open
wants to merge 4 commits into
base: dev
Choose a base branch
from

Conversation

sofi2002sofi
Copy link
Contributor

No description provided.

@Test
public void matchesForTreeWithoutResourceTypePropertyReturnsFalse()
{
NodeBuilderTree tree = new NodeBuilderTree(UUID.randomUUID().toString(), EmptyNodeState.EMPTY_NODE.builder());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missed test case of tree created from sling:resourceType other than cards/Form

@Test
public void matchesForTreeWithoutResourceSuperTypePropertyReturnsFalse()
{
NodeBuilderTree tree = new NodeBuilderTree(UUID.randomUUID().toString(), EmptyNodeState.EMPTY_NODE.builder());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missed test case of tree created from sling:resourceType other than cards/Answer

@Test
public void matchesForTreeWithoutResourceSuperTypePropertyReturnsFalse()
{
NodeBuilderTree tree = new NodeBuilderTree(UUID.randomUUID().toString(), EmptyNodeState.EMPTY_NODE.builder());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missed test case of tree created from sling:resourceType other than cards/AnswerSection

@veronikaslc
Copy link
Contributor

PermissionsManagerServiceTest - > not covered cases from line 175 of PermissionsManagerService:

if (!restrictions.containsKey(key) || !entry.getRestriction(key).equals(restrictions.get(key)))

@veronikaslc
Copy link
Contributor

SessionSubjectRestrictionPatternTest -> 2 of 4 branches missed for line 99 of SessionSubjectRestrictionPattern.

@veronikaslc
Copy link
Contributor

jacoco.zip
jacoco:report html file attached

@sofi2002sofi sofi2002sofi force-pushed the CARDS-2131-permissions-test branch from 7433108 to 0912d65 Compare August 26, 2023 17:23
@sdumitriu sdumitriu force-pushed the CARDS-2131-permissions-test branch from 0912d65 to ef9b731 Compare August 26, 2023 21:54
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