Fixing Travis issues while building

This commit is contained in:
Nanne Baars
2017-05-21 13:28:29 +02:00
parent 2b2451dd9c
commit 0ad1f0d147
4 changed files with 5 additions and 2 deletions

View File

@ -18,7 +18,7 @@ spring.thymeleaf.cache=false
webgoat.clean=true
webgoat.server.directory=${user.home}/.webgoat/
webgoat.user.directory=/tmp/
webgoat.user.directory=${user.home}/.webgoat/
webgoat.build.version=@project.version@
webgoat.build.number=@build.number@
webgoat.email=webgoat@owasp.org

View File

@ -8,6 +8,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.embedded.LocalServerPort;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.mock.mockito.MockBean;
import org.springframework.test.context.TestPropertySource;
import org.springframework.test.web.servlet.MockMvc;
import org.springframework.web.context.WebApplicationContext;
@ -20,6 +21,7 @@ import static org.mockito.Mockito.when;
* @since 5/20/17.
*/
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
@TestPropertySource(locations = "classpath:/application-test.properties")
public abstract class LessonTest {
@LocalServerPort

View File

@ -0,0 +1 @@
webgoat.user.directory=/tmp/