Skip to content

Commit

Permalink
Tiny test refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Jan 13, 2025
1 parent 0d2b0f3 commit 6c035aa
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ void builderConstructorWithErrorReportConfiguration()
.maxRawContentLength(5678)
.build();

ErrorReportConfiguration configB = new ErrorReportConfiguration.Builder(configA).build();
ErrorReportConfiguration configB = configA.rebuild().build();

assertEquals(configA.getMaxErrorTokenLength(), configB.getMaxErrorTokenLength());
assertEquals(configA.getMaxRawContentLength(), configB.getMaxRawContentLength());
Expand Down Expand Up @@ -312,7 +312,7 @@ private void _testWithMaxErrorTokenLength(int expectedSize, int tokenLen, JsonFa
parser.nextToken();
parser.nextToken();
} catch (JsonProcessingException e) {
assertThat(e.getLocation()._totalChars).isEqualTo(expectedSize);
assertThat(e.getLocation().getCharOffset()).isEqualTo(expectedSize);
assertThat(e.getMessage()).contains("Unrecognized token");
}
}
Expand Down

0 comments on commit 6c035aa

Please sign in to comment.