Skip to content

Commit

Permalink
Fix Checkstyle violation
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrannen committed Aug 22, 2021
1 parent 6c71cf2 commit b28f403
Showing 1 changed file with 5 additions and 5 deletions.
Expand Up @@ -22,7 +22,7 @@
import org.springframework.web.testfixture.servlet.MockHttpServletRequest;

import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;

/**
* Unit tests for {@link UrlPathHelper}.
Expand Down Expand Up @@ -170,16 +170,16 @@ void getLookupPathWithSemicolonContentAndNullPathInfo() {
void defaultInstanceReadOnlyBehavior() {
UrlPathHelper helper = UrlPathHelper.defaultInstance;

assertThatExceptionOfType(IllegalArgumentException.class)
assertThatIllegalArgumentException()
.isThrownBy(() -> helper.setAlwaysUseFullPath(true))
.withMessage("This instance cannot be modified");
assertThatExceptionOfType(IllegalArgumentException.class)
assertThatIllegalArgumentException()
.isThrownBy(() -> helper.setUrlDecode(true))
.withMessage("This instance cannot be modified");
assertThatExceptionOfType(IllegalArgumentException.class)
assertThatIllegalArgumentException()
.isThrownBy(() -> helper.setRemoveSemicolonContent(true))
.withMessage("This instance cannot be modified");
assertThatExceptionOfType(IllegalArgumentException.class)
assertThatIllegalArgumentException()
.isThrownBy(() -> helper.setDefaultEncoding("UTF-8"))
.withMessage("This instance cannot be modified");

Expand Down

0 comments on commit b28f403

Please sign in to comment.