Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
lukas-krecan committed Nov 15, 2024
1 parent 6d9aec4 commit b130b15
Show file tree
Hide file tree
Showing 3 changed files with 5 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 @@ -55,6 +55,7 @@
import net.javacrumbs.jsonunit.test.base.AbstractJsonAssertTest.DivisionMatcher;
import org.hamcrest.Matcher;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test;
import org.opentest4j.AssertionFailedError;
import org.opentest4j.MultipleFailuresError;
Expand Down Expand Up @@ -2337,7 +2338,7 @@ void hamcrestMessageTest() {
@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 b130b15

Please sign in to comment.