chore: add pre-commit hooks

chore: add pre-commit hooks

chore: add pre-commit hooks

chore: add pre-commit hooks

chore: add pre-commit hooks
This commit is contained in:
Nanne Baars
2023-12-06 16:10:19 +01:00
committed by Nanne Baars
parent d913967ec5
commit 17acef57b4
305 changed files with 1573 additions and 1656 deletions

View File

@ -24,6 +24,7 @@
package org.owasp.webgoat.lessons.challenges.challenge7;
import static org.assertj.core.api.Assertions.assertThat;
import java.util.stream.Stream;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.params.ParameterizedTest;

View File

@ -25,6 +25,7 @@ package org.owasp.webgoat.lessons.spoofcookie.encoders;
import static org.assertj.core.api.Assertions.assertThat;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
import java.util.stream.Stream;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;

View File

@ -24,6 +24,7 @@ package org.owasp.webgoat.lessons.vulnerablecomponents;
import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.jupiter.api.Assertions.assertThrows;
import com.thoughtworks.xstream.XStream;
import com.thoughtworks.xstream.io.StreamException;
import org.junit.jupiter.api.Disabled;

View File

@ -23,6 +23,7 @@
package org.owasp.webgoat.webwolf.mailbox;
import static org.assertj.core.api.Assertions.assertThat;
import java.time.LocalDateTime;
import java.util.List;
import org.junit.jupiter.api.Test;

View File

@ -62,7 +62,8 @@ public class UserServiceTest {
when(mockUserRepository.findByUsername(username)).thenReturn(null);
assertThatExceptionOfType(UsernameNotFoundException.class).isThrownBy(() -> sut.loadUserByUsername(username));
assertThatExceptionOfType(UsernameNotFoundException.class)
.isThrownBy(() -> sut.loadUserByUsername(username));
}
@Test

View File

@ -7,4 +7,3 @@ spring.jpa.properties.hibernate.default_schema=CONTAINER
spring.thymeleaf.prefix=classpath:/webwolf/templates/
webwolf.fileserver.location=${java.io.tmpdir}/webwolf-fileserver

View File

@ -12,4 +12,4 @@ to keep the Travis build going otherwise it fails with too much logging.
<logger name="org.springframework.web" level="DEBUG"/>
</configuration>
-->
-->