- Added new challenges
- Added new webapplication called WebWolf to make attacks more realistic - Added WebWolf lesson to explain the concepts behind this new application
This commit is contained in:
@ -0,0 +1,19 @@
|
||||
package org.owasp.webgoat.plugins;
|
||||
|
||||
import org.apache.activemq.broker.BrokerService;
|
||||
import org.mockito.Mockito;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
/**
|
||||
* @author nbaars
|
||||
* @since 8/30/17.
|
||||
*/
|
||||
@Configuration
|
||||
public class JmsTestConfig {
|
||||
|
||||
@Bean
|
||||
public BrokerService broker() throws Exception {
|
||||
return Mockito.mock(BrokerService.class);
|
||||
}
|
||||
}
|
@ -9,6 +9,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.context.annotation.Import;
|
||||
import org.springframework.test.context.TestPropertySource;
|
||||
import org.springframework.test.web.servlet.MockMvc;
|
||||
import org.springframework.web.context.WebApplicationContext;
|
||||
@ -23,6 +24,7 @@ import static org.mockito.Mockito.when;
|
||||
*/
|
||||
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
|
||||
@TestPropertySource(locations = "classpath:/application-test.properties")
|
||||
@Import(JmsTestConfig.class)
|
||||
public abstract class LessonTest {
|
||||
|
||||
@LocalServerPort
|
||||
|
Reference in New Issue
Block a user