SystemInfoController.java

1
package edu.ucsb.cs156.courses.controllers;
2
3
import edu.ucsb.cs156.courses.models.SystemInfo;
4
import edu.ucsb.cs156.courses.services.SystemInfoService;
5
import io.swagger.annotations.Api;
6
import io.swagger.annotations.ApiOperation;
7
8
import org.springframework.beans.factory.annotation.Autowired;
9
import org.springframework.web.bind.annotation.GetMapping;
10
import org.springframework.web.bind.annotation.RequestMapping;
11
import org.springframework.web.bind.annotation.RestController;
12
13
@Api(description = "System Information")
14
@RequestMapping("/api/systemInfo")
15
@RestController
16
public class SystemInfoController extends ApiController {
17
18
    @Autowired
19
    private SystemInfoService systemInfoService;
20
21
    @ApiOperation(value = "Get global public information about the application")
22
    @GetMapping("")
23
    public SystemInfo getSystemInfo() {
24 1 1. getSystemInfo : replaced return value with null for edu/ucsb/cs156/courses/controllers/SystemInfoController::getSystemInfo → KILLED
        return systemInfoService.getSystemInfo();
25
    }
26
27
}

Mutations

24

1.1
Location : getSystemInfo
Killed by : edu.ucsb.cs156.courses.controllers.SystemInfoControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.courses.controllers.SystemInfoControllerTests]/[method:systemInfo__user_logged_in()]
replaced return value with null for edu/ucsb/cs156/courses/controllers/SystemInfoController::getSystemInfo → KILLED

Active mutators

Tests examined


Report generated by PIT 1.7.3