mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Merge pull request #22209 from XenoAmess
* gh-22209: Use valueOf rather than parseInt as result is assigned to an int Closes gh-22209
This commit is contained in:
commit
a118668212
@ -519,7 +519,7 @@ class ServerPropertiesTests {
|
||||
template.postForEntity(URI.create("http://localhost:" + jetty.getPort() + "/form"), entity, Void.class);
|
||||
assertThat(failure.get()).isNotNull();
|
||||
String message = failure.get().getCause().getMessage();
|
||||
int defaultMaxPostSize = Integer.valueOf(message.substring(message.lastIndexOf(' ')).trim());
|
||||
int defaultMaxPostSize = Integer.parseInt(message.substring(message.lastIndexOf(' ')).trim());
|
||||
assertThat(this.properties.getJetty().getMaxHttpFormPostSize().toBytes()).isEqualTo(defaultMaxPostSize);
|
||||
}
|
||||
finally {
|
||||
|
Loading…
Reference in New Issue
Block a user