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

Option.IGNORING_CASE #546

Open
repon06 opened this issue Aug 31, 2022 · 1 comment
Open

Option.IGNORING_CASE #546

repon06 opened this issue Aug 31, 2022 · 1 comment

Comments

@repon06
Copy link

repon06 commented Aug 31, 2022

   assertThatJson("[{\"value\":\"CXwKhVuuKb\",\"key\":\"description\"},{\"value\":\"PfkCgOYHLf\",\"key\":\"code\"},{\"value\":\"1\",\"key\":\"accessLevel\"},{\"value\":\"1\",\"key\":\"PermissionIds[0]\"},{\"value\":\"2\",\"key\":\"PermissionIds[1]\"},{\"value\":\"3\",\"key\":\"PermissionIds[2]\"},{\"value\":\"10\",\"key\":\"Id\"}]")
            .when(Option.IGNORING_ARRAY_ORDER)
            .isEqualTo("[{\"key\":\"Id\",\"value\":\"10\"},{\"key\":\"Code\",\"value\":\"PfkCgOYHLf\"},{\"key\":\"Description\",\"value\":\"CXwKhVuuKb\"},{\"key\":\"AccessLevel\",\"value\":\"1\"},{\"key\":\"PermissionIds[0]\",\"value\":\"1\"},{\"key\":\"PermissionIds[1]\",\"value\":\"2\"},{\"key\":\"PermissionIds[2]\",\"value\":\"3\"}]");

//false
i have to true compare: "key":"Description" and ,"key":"description"

@repon06
Copy link
Author

repon06 commented Aug 31, 2022

or
.when(Option.IGNORING_CASE_KEYS)
.when(Option.IGNORING_CASE_VALUES)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant