diff --git a/server/src/test/java/access/validation/URLFormatValidatorTest.java b/server/src/test/java/access/validation/URLFormatValidatorTest.java new file mode 100644 index 00000000..fb79b980 --- /dev/null +++ b/server/src/test/java/access/validation/URLFormatValidatorTest.java @@ -0,0 +1,15 @@ +package access.validation; + +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +class URLFormatValidatorTest { + + private static final URLFormatValidator urlFormatValidator = new URLFormatValidator(); + + @Test + void isValid() { + assertFalse(urlFormatValidator.isValid("javascript:alert(42)")); + } +} \ No newline at end of file