You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by ad...@apache.org on 2026/01/04 17:41:15 UTC
(wicket) 01/01: Fixed brackets indentation
This is an automated email from the ASF dual-hosted git repository.
adelbene pushed a commit to branch add-src-attrs-to-csp-directive
in repository https://gitbox.apache.org/repos/asf/wicket.git
commit 45ba89d1fcb9f5214f2de0df8800866ec4509fb4
Author: Andrea Del Bene <ad...@apache.org>
AuthorDate: Sun Jan 4 18:41:07 2026 +0100
Fixed brackets indentation
---
.../src/test/java/org/apache/wicket/csp/CSPDirectiveTest.java | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/wicket-core/src/test/java/org/apache/wicket/csp/CSPDirectiveTest.java b/wicket-core/src/test/java/org/apache/wicket/csp/CSPDirectiveTest.java
index d6ad5f7db4..40c4fe8711 100644
--- a/wicket-core/src/test/java/org/apache/wicket/csp/CSPDirectiveTest.java
+++ b/wicket-core/src/test/java/org/apache/wicket/csp/CSPDirectiveTest.java
@@ -25,7 +25,8 @@ import static org.junit.jupiter.api.Assertions.assertThrows;
class CSPDirectiveTest {
@Test
- void scriptSrcAttrAndStyleSrcAttributesSupportValues() {
+ void scriptSrcAttrAndStyleSrcAttributesSupportValues()
+ {
CSPDirective.SCRIPT_SRC_ATTR.checkValueForDirective(CSPDirectiveSrcValue.NONE, List.of());
CSPDirective.SCRIPT_SRC_ATTR.checkValueForDirective(CSPDirectiveSrcValue.UNSAFE_INLINE, List.of());
CSPDirective.STYLE_SRC_ATTR.checkValueForDirective(CSPDirectiveSrcValue.NONE, List.of());
@@ -33,13 +34,15 @@ class CSPDirectiveTest {
}
@Test
- void scriptSrcAttrAndStyleSrcAttributesOnlySupportOneValue() {
+ void scriptSrcAttrAndStyleSrcAttributesOnlySupportOneValue()
+ {
assertThrows(IllegalArgumentException.class, () -> CSPDirective.SCRIPT_SRC_ATTR.checkValueForDirective(CSPDirectiveSrcValue.NONE, List.of(CSPDirectiveSrcValue.UNSAFE_INLINE)));
assertThrows(IllegalArgumentException.class, () -> CSPDirective.STYLE_SRC_ATTR.checkValueForDirective(CSPDirectiveSrcValue.UNSAFE_INLINE, List.of(CSPDirectiveSrcValue.UNSAFE_INLINE)));
}
@Test
- void scriptSrcAttrAndStyleSrcAttributesOnlySupportNoneAndUnsafeInline() {
+ void scriptSrcAttrAndStyleSrcAttributesOnlySupportNoneAndUnsafeInline()
+ {
assertThrows(IllegalArgumentException.class, () -> CSPDirective.SCRIPT_SRC_ATTR.checkValueForDirective(CSPDirectiveSrcValue.SELF, List.of()));
assertThrows(IllegalArgumentException.class, () -> CSPDirective.STYLE_SRC_ATTR.checkValueForDirective(CSPDirectiveSrcValue.WILDCARD, List.of()));
}