1 | package edu.ucsb.cs156.frontiers.startup; | |
2 | ||
3 | import edu.ucsb.cs156.frontiers.services.wiremock.WiremockService; | |
4 | import lombok.extern.slf4j.Slf4j; | |
5 | import org.springframework.beans.factory.annotation.Autowired; | |
6 | import org.springframework.boot.ApplicationArguments; | |
7 | import org.springframework.boot.ApplicationRunner; | |
8 | import org.springframework.context.annotation.Configuration; | |
9 | import org.springframework.context.annotation.Profile; | |
10 | ||
11 | @Configuration | |
12 | @Slf4j | |
13 | @Profile("wiremock") | |
14 | public class WiremockApplicationRunner implements ApplicationRunner { | |
15 | @Autowired WiremockService wiremockService; | |
16 | ||
17 | /** | |
18 | * When using the wiremock profile, this method will call the code needed to set up the wiremock | |
19 | * services | |
20 | */ | |
21 | @Override | |
22 | public void run(ApplicationArguments args) throws Exception { | |
23 | log.info("wiremock mode"); | |
24 |
1
1. run : removed call to edu/ucsb/cs156/frontiers/services/wiremock/WiremockService::init → KILLED |
wiremockService.init(); |
25 | log.info("wiremockApplicationRunner completed"); | |
26 | } | |
27 | } | |
Mutations | ||
24 |
1.1 |