Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
lukas-krecan committed Sep 28, 2024
1 parent 333917a commit 16a4b83
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

class Normalizer {

private static int depth = 2;
private static final int depth = 2;

/**
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2316,7 +2316,7 @@ void shouldFailFast() {
@Nested
protected class ReportAsString {
@Test
void shouldNormalizeComplexJsons() {
protected void shouldNormalizeComplexJsons() {
assertThatThrownBy(() -> assertThatJson("{\"a\": {\"c\": [{\"e\": 2, \"f\": 3}, 3]}, \"b\": false}")
.when(REPORTING_DIFFERENCE_AS_NORMALIZED_STRING)
.isEqualTo("{\"b\": true, \"a\": {\"c\": [{\"f\": 2, \"e\": 3}, 5]}}"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,10 @@ protected void objectFieldsShouldBeKeptInOrder() {

@Nested
class ReportAsString extends AbstractAssertJTest.ReportAsString {
@Override
@Test
@Disabled
void shouldNormalizeComplexJsons() {
public void shouldNormalizeComplexJsons() {
// ignored, does not maintain order
}
}
Expand Down

0 comments on commit 16a4b83

Please sign in to comment.