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.v3.oas.annotations.Operation;
6
import io.swagger.v3.oas.annotations.tags.Tag;
7
import org.springframework.beans.factory.annotation.Autowired;
8
import org.springframework.web.bind.annotation.GetMapping;
9
import org.springframework.web.bind.annotation.RequestMapping;
10
import org.springframework.web.bind.annotation.RestController;
11
12
@Tag(name = "System Information")
13
@RequestMapping("/api/systemInfo")
14
@RestController
15
public class SystemInfoController extends ApiController {
16
17
  @Autowired private SystemInfoService systemInfoService;
18
19
  @Operation(summary = "Get global public information about the application")
20
  @GetMapping("")
21
  public SystemInfo getSystemInfo() {
22 1 1. getSystemInfo : replaced return value with null for edu/ucsb/cs156/courses/controllers/SystemInfoController::getSystemInfo → KILLED
    return systemInfoService.getSystemInfo();
23
  }
24
}

Mutations

22

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