SystemInfoServiceImpl.java

1
package edu.ucsb.cs.scaffold.services;
2
3
import edu.ucsb.cs.scaffold.model.SystemInfo;
4
import lombok.extern.slf4j.Slf4j;
5
import org.springframework.beans.factory.annotation.Value;
6
import org.springframework.boot.context.properties.ConfigurationProperties;
7
import org.springframework.stereotype.Service;
8
9
@Slf4j
10
@Service("systemInfo")
11
@ConfigurationProperties
12
public class SystemInfoServiceImpl extends SystemInfoService {
13
14
  @Value("${spring.h2.console.enabled:false}")
15
  private boolean springH2ConsoleEnabled;
16
17
  @Value("${app.showSwaggerUILink:false}")
18
  private boolean showSwaggerUILink;
19
20
  @Value("${app.oauth.login:/oauth2/authorization/google}")
21
  private String oauthLogin;
22
23
  @Value("${app.sourceRepo:https://github.com/ucsb-cs/scaffold}")
24
  private String sourceRepo;
25
26
  @Override
27
  public SystemInfo getSystemInfo() {
28
    SystemInfo si =
29
        SystemInfo.builder()
30
            .springH2ConsoleEnabled(this.springH2ConsoleEnabled)
31
            .showSwaggerUILink(this.showSwaggerUILink)
32
            .oauthLogin(this.oauthLogin)
33
            .sourceRepo(this.sourceRepo)
34
            .build();
35
    log.info("getSystemInfo returns {}", si);
36 1 1. getSystemInfo : replaced return value with null for edu/ucsb/cs/scaffold/services/SystemInfoServiceImpl::getSystemInfo → KILLED
    return si;
37
  }
38
}

Mutations

36

1.1
Location : getSystemInfo
Killed by : edu.ucsb.cs.scaffold.ScaffoldApplicationTests.[engine:junit-jupiter]/[class:edu.ucsb.cs.scaffold.ScaffoldApplicationTests]/[method:getSystemInfoReturnsOk()]
replaced return value with null for edu/ucsb/cs/scaffold/services/SystemInfoServiceImpl::getSystemInfo → KILLED

Active mutators

Tests examined


Report generated by PIT 1.17.0