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:
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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>
|
||||
|
||||
-->
|
||||
-->
|
||||
|
Reference in New Issue
Block a user