RosterStudentsController.java

1
package edu.ucsb.cs156.frontiers.controllers;
2
3
import com.fasterxml.jackson.core.JsonProcessingException;
4
import edu.ucsb.cs156.frontiers.entities.Course;
5
import edu.ucsb.cs156.frontiers.entities.RosterStudent;
6
import edu.ucsb.cs156.frontiers.entities.User;
7
import edu.ucsb.cs156.frontiers.enums.InsertStatus;
8
import edu.ucsb.cs156.frontiers.enums.OrgStatus;
9
import edu.ucsb.cs156.frontiers.enums.RosterStatus;
10
import edu.ucsb.cs156.frontiers.errors.EntityNotFoundException;
11
import edu.ucsb.cs156.frontiers.errors.NoLinkedOrganizationException;
12
import edu.ucsb.cs156.frontiers.jobs.UpdateOrgMembershipJob;
13
import edu.ucsb.cs156.frontiers.models.RosterStudentDTO;
14
import edu.ucsb.cs156.frontiers.models.UpsertResponse;
15
import edu.ucsb.cs156.frontiers.repositories.CourseRepository;
16
import edu.ucsb.cs156.frontiers.repositories.RosterStudentRepository;
17
import edu.ucsb.cs156.frontiers.services.CurrentUserService;
18
import edu.ucsb.cs156.frontiers.services.OrganizationMemberService;
19
import edu.ucsb.cs156.frontiers.services.UpdateUserService;
20
import edu.ucsb.cs156.frontiers.utilities.CanonicalFormConverter;
21
import edu.ucsb.cs156.jobs.entities.Job;
22
import edu.ucsb.cs156.jobs.services.JobService;
23
import io.swagger.v3.oas.annotations.Operation;
24
import io.swagger.v3.oas.annotations.Parameter;
25
import io.swagger.v3.oas.annotations.tags.Tag;
26
import java.security.NoSuchAlgorithmException;
27
import java.security.spec.InvalidKeySpecException;
28
import java.util.ArrayList;
29
import java.util.List;
30
import java.util.Optional;
31
import lombok.extern.slf4j.Slf4j;
32
import org.springframework.beans.factory.annotation.Autowired;
33
import org.springframework.http.HttpStatus;
34
import org.springframework.http.ResponseEntity;
35
import org.springframework.security.access.AccessDeniedException;
36
import org.springframework.security.access.prepost.PreAuthorize;
37
import org.springframework.transaction.annotation.Transactional;
38
import org.springframework.web.bind.annotation.DeleteMapping;
39
import org.springframework.web.bind.annotation.GetMapping;
40
import org.springframework.web.bind.annotation.PathVariable;
41
import org.springframework.web.bind.annotation.PostMapping;
42
import org.springframework.web.bind.annotation.PutMapping;
43
import org.springframework.web.bind.annotation.RequestMapping;
44
import org.springframework.web.bind.annotation.RequestParam;
45
import org.springframework.web.bind.annotation.RestController;
46
import org.springframework.web.server.ResponseStatusException;
47
48
@Tag(name = "RosterStudents")
49
@RequestMapping("/api/rosterstudents")
50
@RestController
51
@Slf4j
52
public class RosterStudentsController extends ApiController {
53
54
  @Autowired private JobService jobService;
55
  @Autowired private OrganizationMemberService organizationMemberService;
56
57
  @Autowired private RosterStudentRepository rosterStudentRepository;
58
59
  @Autowired private CourseRepository courseRepository;
60
61
  @Autowired private UpdateUserService updateUserService;
62
63
  @Autowired private CurrentUserService currentUserService;
64
65
  /**
66
   * This method creates a new RosterStudent. It is important to keep the code in this method
67
   * consistent with the code for adding multiple roster students from a CSV
68
   *
69
   * @return the created RosterStudent
70
   */
71
  @Operation(summary = "Create a new roster student")
72
  @PreAuthorize("@CourseSecurity.hasManagePermissions(#root, #courseId)")
73
  @PostMapping("/post")
74
  public ResponseEntity<UpsertResponse<RosterStudent>> postRosterStudent(
75
      @Parameter(name = "studentId") @RequestParam String studentId,
76
      @Parameter(name = "firstName") @RequestParam String firstName,
77
      @Parameter(name = "lastName") @RequestParam String lastName,
78
      @Parameter(name = "email") @RequestParam String email,
79
      @Parameter(name = "courseId") @RequestParam Long courseId,
80
      @Parameter(name = "section") @RequestParam(required = false) String section)
81
      throws EntityNotFoundException {
82
83
    // Get Course or else throw an error
84
85
    Course course =
86
        courseRepository
87
            .findById(courseId)
88 1 1. lambda$postRosterStudent$0 : replaced return value with null for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::lambda$postRosterStudent$0 → KILLED
            .orElseThrow(() -> new EntityNotFoundException(Course.class, courseId));
89
90
    RosterStudent rosterStudent =
91
        RosterStudent.builder()
92
            .studentId(studentId)
93
            .firstName(firstName)
94
            .lastName(lastName)
95
            .email(email.strip())
96 1 1. postRosterStudent : negated conditional → KILLED
            .section(section != null ? section : "")
97
            .build();
98
99
    UpsertResponse<RosterStudent> upsertResponse =
100
        upsertStudent(rosterStudent, course, RosterStatus.MANUAL);
101 1 1. postRosterStudent : negated conditional → KILLED
    if (upsertResponse.getInsertStatus() == InsertStatus.REJECTED) {
102 1 1. postRosterStudent : replaced return value with null for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::postRosterStudent → KILLED
      return ResponseEntity.status(HttpStatus.CONFLICT).body(upsertResponse);
103
    } else {
104
      rosterStudent = rosterStudentRepository.save(upsertResponse.entity());
105 1 1. postRosterStudent : removed call to edu/ucsb/cs156/frontiers/services/UpdateUserService::attachUserToRosterStudent → KILLED
      updateUserService.attachUserToRosterStudent(rosterStudent);
106 1 1. postRosterStudent : replaced return value with null for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::postRosterStudent → KILLED
      return ResponseEntity.ok(upsertResponse);
107
    }
108
  }
109
110
  /**
111
   * This method returns a list of roster students for a given course.
112
   *
113
   * @return a list of all courses.
114
   */
115
  @Operation(summary = "List all roster students for a course")
116
  @PreAuthorize("@CourseSecurity.hasManagePermissions(#root, #courseId)")
117
  @GetMapping("/course/{courseId}")
118
  public Iterable<RosterStudentDTO> rosterStudentForCourse(
119
      @Parameter(name = "courseId") @PathVariable Long courseId) throws EntityNotFoundException {
120
    courseRepository
121
        .findById(courseId)
122 1 1. lambda$rosterStudentForCourse$0 : replaced return value with null for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::lambda$rosterStudentForCourse$0 → KILLED
        .orElseThrow(() -> new EntityNotFoundException(Course.class, courseId));
123
    Iterable<RosterStudent> rosterStudents =
124
        rosterStudentRepository.findByCourseIdOrderByFirstNameAscLastNameAscIgnoreCase(courseId);
125
    Iterable<RosterStudentDTO> rosterStudentDTOs =
126
        () ->
127 1 1. lambda$rosterStudentForCourse$1 : replaced return value with null for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::lambda$rosterStudentForCourse$1 → KILLED
            java.util.stream.StreamSupport.stream(rosterStudents.spliterator(), false)
128
                .map(RosterStudentDTO::new)
129
                .iterator();
130 1 1. rosterStudentForCourse : replaced return value with Collections.emptyList for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::rosterStudentForCourse → KILLED
    return rosterStudentDTOs;
131
  }
132
133
  public static UpsertResponse<RosterStudent> upsertStudent(
134
      RosterStudent student, Course course, RosterStatus rosterStatus) {
135
    String convertedEmail = CanonicalFormConverter.convertToValidEmail(student.getEmail()).strip();
136
    Optional<RosterStudent> existingStudent =
137
        course.getRosterStudents().stream()
138
            .filter(
139 2 1. lambda$upsertStudent$0 : replaced boolean return with true for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::lambda$upsertStudent$0 → KILLED
2. lambda$upsertStudent$0 : replaced boolean return with false for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::lambda$upsertStudent$0 → KILLED
                filteringStudent -> student.getStudentId().equals(filteringStudent.getStudentId()))
140
            .findFirst();
141
    Optional<RosterStudent> existingStudentByEmail =
142
        course.getRosterStudents().stream()
143 2 1. lambda$upsertStudent$1 : replaced boolean return with false for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::lambda$upsertStudent$1 → KILLED
2. lambda$upsertStudent$1 : replaced boolean return with true for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::lambda$upsertStudent$1 → KILLED
            .filter(filteringStudent -> convertedEmail.equals(filteringStudent.getEmail()))
144
            .findFirst();
145 2 1. upsertStudent : negated conditional → KILLED
2. upsertStudent : negated conditional → KILLED
    if (existingStudent.isPresent() && existingStudentByEmail.isPresent()) {
146
      // Compare by identity rather than by id: during a CSV upload, a newly inserted student
147
      // that has not yet been saved (id == null) is added to the course's roster list, and a
148
      // duplicate row later in the same file must match it without throwing an NPE.
149 1 1. upsertStudent : negated conditional → KILLED
      if (existingStudent.get() == existingStudentByEmail.get()) {
150
        RosterStudent existingStudentObj = existingStudent.get();
151 1 1. upsertStudent : removed call to edu/ucsb/cs156/frontiers/entities/RosterStudent::setRosterStatus → KILLED
        existingStudentObj.setRosterStatus(rosterStatus);
152 1 1. upsertStudent : removed call to edu/ucsb/cs156/frontiers/entities/RosterStudent::setFirstName → KILLED
        existingStudentObj.setFirstName(student.getFirstName());
153 1 1. upsertStudent : removed call to edu/ucsb/cs156/frontiers/entities/RosterStudent::setLastName → KILLED
        existingStudentObj.setLastName(student.getLastName());
154 1 1. upsertStudent : removed call to edu/ucsb/cs156/frontiers/entities/RosterStudent::setSection → KILLED
        existingStudentObj.setSection(student.getSection());
155 1 1. upsertStudent : replaced return value with null for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::upsertStudent → KILLED
        return new UpsertResponse<>(InsertStatus.UPDATED, existingStudentObj);
156
      } else {
157 1 1. upsertStudent : replaced return value with null for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::upsertStudent → KILLED
        return new UpsertResponse<>(InsertStatus.REJECTED, student);
158
      }
159 2 1. upsertStudent : negated conditional → KILLED
2. upsertStudent : negated conditional → KILLED
    } else if (existingStudent.isPresent() || existingStudentByEmail.isPresent()) {
160
      RosterStudent existingStudentObj =
161 1 1. upsertStudent : negated conditional → KILLED
          existingStudent.isPresent() ? existingStudent.get() : existingStudentByEmail.get();
162 1 1. upsertStudent : removed call to edu/ucsb/cs156/frontiers/entities/RosterStudent::setRosterStatus → KILLED
      existingStudentObj.setRosterStatus(rosterStatus);
163 1 1. upsertStudent : removed call to edu/ucsb/cs156/frontiers/entities/RosterStudent::setFirstName → KILLED
      existingStudentObj.setFirstName(student.getFirstName());
164 1 1. upsertStudent : removed call to edu/ucsb/cs156/frontiers/entities/RosterStudent::setLastName → KILLED
      existingStudentObj.setLastName(student.getLastName());
165 1 1. upsertStudent : removed call to edu/ucsb/cs156/frontiers/entities/RosterStudent::setSection → KILLED
      existingStudentObj.setSection(student.getSection());
166 1 1. upsertStudent : removed call to edu/ucsb/cs156/frontiers/entities/RosterStudent::setEmail → KILLED
      existingStudentObj.setEmail(convertedEmail);
167 1 1. upsertStudent : removed call to edu/ucsb/cs156/frontiers/entities/RosterStudent::setStudentId → KILLED
      existingStudentObj.setStudentId(student.getStudentId());
168 1 1. upsertStudent : replaced return value with null for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::upsertStudent → KILLED
      return new UpsertResponse<>(InsertStatus.UPDATED, existingStudentObj);
169
    } else {
170 1 1. upsertStudent : removed call to edu/ucsb/cs156/frontiers/entities/RosterStudent::setCourse → KILLED
      student.setCourse(course);
171 1 1. upsertStudent : removed call to edu/ucsb/cs156/frontiers/entities/RosterStudent::setEmail → KILLED
      student.setEmail(convertedEmail);
172 1 1. upsertStudent : removed call to edu/ucsb/cs156/frontiers/entities/RosterStudent::setRosterStatus → KILLED
      student.setRosterStatus(rosterStatus);
173
      // if an installationID exists, orgStatus should be set to JOINCOURSE. if it doesn't exist
174
      // (null), set orgStatus to PENDING.
175 1 1. upsertStudent : negated conditional → KILLED
      if (course.getInstallationId() != null) {
176 1 1. upsertStudent : removed call to edu/ucsb/cs156/frontiers/entities/RosterStudent::setOrgStatus → KILLED
        student.setOrgStatus(OrgStatus.JOINCOURSE);
177
      } else {
178 1 1. upsertStudent : removed call to edu/ucsb/cs156/frontiers/entities/RosterStudent::setOrgStatus → KILLED
        student.setOrgStatus(OrgStatus.PENDING);
179
      }
180 1 1. upsertStudent : replaced return value with null for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::upsertStudent → KILLED
      return new UpsertResponse<>(InsertStatus.INSERTED, student);
181
    }
182
  }
183
184
  @PreAuthorize("@CourseSecurity.hasManagePermissions(#root, #courseId)")
185
  @PostMapping("/updateCourseMembership")
186
  public Job updateCourseMembership(
187
      @Parameter(name = "courseId", description = "Course ID") @RequestParam Long courseId)
188
      throws NoSuchAlgorithmException, InvalidKeySpecException, JsonProcessingException {
189
    Course course =
190
        courseRepository
191
            .findById(courseId)
192 1 1. lambda$updateCourseMembership$0 : replaced return value with null for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::lambda$updateCourseMembership$0 → KILLED
            .orElseThrow(() -> new EntityNotFoundException(Course.class, courseId));
193 2 1. updateCourseMembership : negated conditional → KILLED
2. updateCourseMembership : negated conditional → KILLED
    if (course.getInstallationId() == null || course.getOrgName() == null) {
194
      throw new NoLinkedOrganizationException(course.getCourseName());
195
    } else {
196
      UpdateOrgMembershipJob job =
197
          UpdateOrgMembershipJob.builder()
198
              .rosterStudentRepository(rosterStudentRepository)
199
              .organizationMemberService(organizationMemberService)
200
              .course(course)
201
              .build();
202
203 1 1. updateCourseMembership : replaced return value with null for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::updateCourseMembership → KILLED
      return jobService.runAsJob(job);
204
    }
205
  }
206
207
  @Operation(
208
      summary =
209
          "Allow roster student to join a course by generating an invitation to the linked Github Org")
210
  @PreAuthorize("hasRole('ROLE_USER')")
211
  @PutMapping("/joinCourse")
212
  public ResponseEntity<String> joinCourseOnGitHub(
213
      @Parameter(
214
              name = "rosterStudentId",
215
              description = "Roster Student joining a course on GitHub")
216
          @RequestParam
217
          Long rosterStudentId)
218
      throws NoSuchAlgorithmException, InvalidKeySpecException, JsonProcessingException {
219
220
    User currentUser = currentUserService.getUser();
221
    RosterStudent rosterStudent =
222
        rosterStudentRepository
223
            .findById(rosterStudentId)
224 1 1. lambda$joinCourseOnGitHub$0 : replaced return value with null for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::lambda$joinCourseOnGitHub$0 → KILLED
            .orElseThrow(() -> new EntityNotFoundException(RosterStudent.class, rosterStudentId));
225
226 2 1. joinCourseOnGitHub : negated conditional → KILLED
2. joinCourseOnGitHub : negated conditional → KILLED
    if (rosterStudent.getUser() == null || currentUser.getId() != rosterStudent.getUser().getId()) {
227
      throw new AccessDeniedException("User not authorized join the course as this roster student");
228
    }
229
230 1 1. joinCourseOnGitHub : negated conditional → KILLED
    if (rosterStudent.getRosterStatus() == RosterStatus.DROPPED) {
231
      throw new AccessDeniedException(
232
          "You have dropped this course. Please contact your instructor.");
233
    }
234
235 1 1. joinCourseOnGitHub : negated conditional → KILLED
    if (rosterStudent.getGithubId() != null
236 1 1. joinCourseOnGitHub : negated conditional → KILLED
        && rosterStudent.getGithubLogin() != null
237 1 1. joinCourseOnGitHub : negated conditional → KILLED
        && (rosterStudent.getOrgStatus() == OrgStatus.MEMBER
238 1 1. joinCourseOnGitHub : negated conditional → KILLED
            || rosterStudent.getOrgStatus() == OrgStatus.OWNER)) {
239 1 1. joinCourseOnGitHub : replaced return value with null for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::joinCourseOnGitHub → KILLED
      return ResponseEntity.badRequest()
240
          .body("This user has already linked a Github account to this course.");
241
    }
242
243 1 1. joinCourseOnGitHub : negated conditional → KILLED
    if (rosterStudent.getCourse().getOrgName() == null
244 1 1. joinCourseOnGitHub : negated conditional → KILLED
        || rosterStudent.getCourse().getInstallationId() == null) {
245 1 1. joinCourseOnGitHub : replaced return value with null for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::joinCourseOnGitHub → KILLED
      return ResponseEntity.badRequest()
246
          .body("Course has not been set up. Please ask your instructor for help.");
247
    }
248 1 1. joinCourseOnGitHub : removed call to edu/ucsb/cs156/frontiers/entities/RosterStudent::setGithubId → KILLED
    rosterStudent.setGithubId(currentUser.getGithubId());
249 1 1. joinCourseOnGitHub : removed call to edu/ucsb/cs156/frontiers/entities/RosterStudent::setGithubLogin → KILLED
    rosterStudent.setGithubLogin(currentUser.getGithubLogin());
250
    OrgStatus status = organizationMemberService.inviteOrganizationMember(rosterStudent);
251 1 1. joinCourseOnGitHub : removed call to edu/ucsb/cs156/frontiers/entities/RosterStudent::setOrgStatus → KILLED
    rosterStudent.setOrgStatus(status);
252
    rosterStudentRepository.save(rosterStudent);
253 1 1. joinCourseOnGitHub : negated conditional → KILLED
    if (status == OrgStatus.INVITED) {
254 1 1. joinCourseOnGitHub : replaced return value with null for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::joinCourseOnGitHub → KILLED
      return ResponseEntity.accepted().body("Successfully invited student to Organization");
255 2 1. joinCourseOnGitHub : negated conditional → KILLED
2. joinCourseOnGitHub : negated conditional → KILLED
    } else if (status == OrgStatus.MEMBER || status == OrgStatus.OWNER) {
256 1 1. joinCourseOnGitHub : replaced return value with null for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::joinCourseOnGitHub → KILLED
      return ResponseEntity.accepted()
257
          .body("Already in organization - set status to %s".formatted(status.toString()));
258
    } else {
259 1 1. joinCourseOnGitHub : replaced return value with null for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::joinCourseOnGitHub → KILLED
      return ResponseEntity.internalServerError().body("Could not invite student to Organization");
260
    }
261
  }
262
263
  @Operation(summary = "Get Associated Roster Students with a User")
264
  @PreAuthorize("hasRole('ROLE_USER')")
265
  @GetMapping("/associatedRosterStudents")
266
  public Iterable<RosterStudent> getAssociatedRosterStudents() {
267
    User currentUser = currentUserService.getUser();
268
    Iterable<RosterStudent> rosterStudents = rosterStudentRepository.findAllByUser((currentUser));
269 1 1. getAssociatedRosterStudents : replaced return value with Collections.emptyList for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::getAssociatedRosterStudents → KILLED
    return rosterStudents;
270
  }
271
272
  @Operation(summary = "Update a roster student")
273
  @PreAuthorize("@CourseSecurity.hasRosterStudentManagementPermissions(#root, #id)")
274
  @PutMapping("/update")
275
  public RosterStudent updateRosterStudent(
276
      @Parameter(name = "id") @RequestParam Long id,
277
      @Parameter(name = "firstName") @RequestParam(required = false) String firstName,
278
      @Parameter(name = "lastName") @RequestParam(required = false) String lastName,
279
      @Parameter(name = "studentId") @RequestParam(required = false) String studentId,
280
      @Parameter(name = "section") @RequestParam(required = false) String section)
281
      throws EntityNotFoundException {
282
283 3 1. updateRosterStudent : negated conditional → KILLED
2. updateRosterStudent : negated conditional → KILLED
3. updateRosterStudent : negated conditional → KILLED
    if (firstName == null
284
        || lastName == null
285
        || studentId == null
286 1 1. updateRosterStudent : negated conditional → KILLED
        || firstName.trim().isEmpty()
287 1 1. updateRosterStudent : negated conditional → KILLED
        || lastName.trim().isEmpty()
288 1 1. updateRosterStudent : negated conditional → KILLED
        || studentId.trim().isEmpty()) {
289
      throw new ResponseStatusException(HttpStatus.BAD_REQUEST, "Required fields cannot be empty");
290
    }
291
292
    RosterStudent rosterStudent =
293
        rosterStudentRepository
294
            .findById(id)
295 1 1. lambda$updateRosterStudent$0 : replaced return value with null for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::lambda$updateRosterStudent$0 → KILLED
            .orElseThrow(() -> new EntityNotFoundException(RosterStudent.class, id));
296
297 1 1. updateRosterStudent : negated conditional → KILLED
    if (!rosterStudent.getStudentId().trim().equals(studentId.trim())) {
298
      Optional<RosterStudent> existingStudent =
299
          rosterStudentRepository.findByCourseIdAndStudentId(
300
              rosterStudent.getCourse().getId(), studentId.trim());
301 1 1. updateRosterStudent : negated conditional → KILLED
      if (existingStudent.isPresent()) {
302
        throw new ResponseStatusException(
303
            HttpStatus.BAD_REQUEST, "Student ID already exists in this course");
304
      }
305
    }
306
307 1 1. updateRosterStudent : removed call to edu/ucsb/cs156/frontiers/entities/RosterStudent::setFirstName → KILLED
    rosterStudent.setFirstName(firstName.trim());
308 1 1. updateRosterStudent : removed call to edu/ucsb/cs156/frontiers/entities/RosterStudent::setLastName → KILLED
    rosterStudent.setLastName(lastName.trim());
309 1 1. updateRosterStudent : removed call to edu/ucsb/cs156/frontiers/entities/RosterStudent::setStudentId → KILLED
    rosterStudent.setStudentId(studentId.trim());
310
311 1 1. updateRosterStudent : negated conditional → KILLED
    if (section != null) {
312 1 1. updateRosterStudent : removed call to edu/ucsb/cs156/frontiers/entities/RosterStudent::setSection → KILLED
      rosterStudent.setSection(section.trim());
313
    }
314
315 1 1. updateRosterStudent : replaced return value with null for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::updateRosterStudent → KILLED
    return rosterStudentRepository.save(rosterStudent);
316
  }
317
318
  @Operation(
319
      summary = "Restore a roster student",
320
      description = "Makes a student who previously dropped the course able to join and interact")
321
  @PreAuthorize("@CourseSecurity.hasRosterStudentManagementPermissions(#root, #id)")
322
  @PutMapping("/restore")
323
  public RosterStudent restoreRosterStudent(@Parameter(name = "id") @RequestParam Long id)
324
      throws EntityNotFoundException {
325
    RosterStudent rosterStudent =
326
        rosterStudentRepository
327
            .findById(id)
328 1 1. lambda$restoreRosterStudent$0 : replaced return value with null for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::lambda$restoreRosterStudent$0 → KILLED
            .orElseThrow(() -> new EntityNotFoundException(RosterStudent.class, id));
329 1 1. restoreRosterStudent : removed call to edu/ucsb/cs156/frontiers/entities/RosterStudent::setRosterStatus → KILLED
    rosterStudent.setRosterStatus(RosterStatus.MANUAL);
330 1 1. restoreRosterStudent : replaced return value with null for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::restoreRosterStudent → KILLED
    return rosterStudentRepository.save(rosterStudent);
331
  }
332
333
  /** Outcome of the optional GitHub organization removal step when deleting a roster student. */
334
  public record OrgRemovalResult(boolean attempted, boolean successful, String errorMessage) {}
335
336
  /** Summary returned when purging all dropped roster students from a course. */
337
  public record PurgeDroppedResponse(
338
      int deleted, int removedFromOrg, List<String> orgRemovalErrors) {}
339
340
  @Operation(summary = "Delete a roster student")
341
  @PreAuthorize("@CourseSecurity.hasRosterStudentManagementPermissions(#root, #id)")
342
  @DeleteMapping("/delete")
343
  @Transactional
344
  public ResponseEntity<String> deleteRosterStudent(
345
      @Parameter(name = "id") @RequestParam Long id,
346
      @Parameter(
347
              name = "removeFromOrg",
348
              description = "Whether to remove student from GitHub organization")
349
          @RequestParam(defaultValue = "true")
350
          boolean removeFromOrg)
351
      throws EntityNotFoundException {
352
    RosterStudent rosterStudent =
353
        rosterStudentRepository
354
            .findById(id)
355 1 1. lambda$deleteRosterStudent$0 : replaced return value with null for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::lambda$deleteRosterStudent$0 → KILLED
            .orElseThrow(() -> new EntityNotFoundException(RosterStudent.class, id));
356
357
    OrgRemovalResult result = deleteSingleRosterStudent(rosterStudent, removeFromOrg);
358
359 1 1. deleteRosterStudent : negated conditional → KILLED
    if (!result.attempted()) {
360 1 1. deleteRosterStudent : replaced return value with null for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::deleteRosterStudent → KILLED
      return ResponseEntity.ok(
361
          "Successfully deleted roster student and removed him/her from the course list");
362 1 1. deleteRosterStudent : negated conditional → KILLED
    } else if (result.successful()) {
363 1 1. deleteRosterStudent : replaced return value with null for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::deleteRosterStudent → KILLED
      return ResponseEntity.ok(
364
          "Successfully deleted roster student and removed him/her from the course list and organization");
365
    } else {
366 1 1. deleteRosterStudent : replaced return value with null for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::deleteRosterStudent → KILLED
      return ResponseEntity.ok(
367
          "Successfully deleted roster student but there was an error removing them from the course organization: "
368
              + result.errorMessage());
369
    }
370
  }
371
372
  @Operation(
373
      summary = "Purge all dropped roster students from a course",
374
      description =
375
          "Deletes every roster student in the course whose roster status is DROPPED, optionally removing them from the GitHub organization")
376
  @PreAuthorize("@CourseSecurity.hasManagePermissions(#root, #courseId)")
377
  @DeleteMapping("/purgeDropped")
378
  @Transactional
379
  public PurgeDroppedResponse purgeDroppedRosterStudents(
380
      @Parameter(name = "courseId") @RequestParam Long courseId,
381
      @Parameter(
382
              name = "removeFromOrg",
383
              description = "Whether to remove the students from the GitHub organization")
384
          @RequestParam(defaultValue = "true")
385
          boolean removeFromOrg)
386
      throws EntityNotFoundException {
387
    courseRepository
388
        .findById(courseId)
389 1 1. lambda$purgeDroppedRosterStudents$0 : replaced return value with null for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::lambda$purgeDroppedRosterStudents$0 → KILLED
        .orElseThrow(() -> new EntityNotFoundException(Course.class, courseId));
390
391
    List<RosterStudent> droppedStudents =
392
        new ArrayList<>(
393
            rosterStudentRepository
394
                .findByCourseIdAndRosterStatusInOrderByFirstNameAscLastNameAscIgnoreCase(
395
                    courseId, List.of(RosterStatus.DROPPED)));
396
397
    int deleted = 0;
398
    int removedFromOrg = 0;
399
    List<String> orgRemovalErrors = new ArrayList<>();
400
    for (RosterStudent rosterStudent : droppedStudents) {
401
      OrgRemovalResult result = deleteSingleRosterStudent(rosterStudent, removeFromOrg);
402 1 1. purgeDroppedRosterStudents : Changed increment from 1 to -1 → KILLED
      deleted++;
403 1 1. purgeDroppedRosterStudents : negated conditional → KILLED
      if (result.successful()) {
404 1 1. purgeDroppedRosterStudents : Changed increment from 1 to -1 → KILLED
        removedFromOrg++;
405 1 1. purgeDroppedRosterStudents : negated conditional → KILLED
      } else if (result.attempted()) {
406
        orgRemovalErrors.add(rosterStudent.getEmail() + ": " + result.errorMessage());
407
      }
408
    }
409 1 1. purgeDroppedRosterStudents : replaced return value with null for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::purgeDroppedRosterStudents → KILLED
    return new PurgeDroppedResponse(deleted, removedFromOrg, orgRemovalErrors);
410
  }
411
412
  /**
413
   * Deletes a single roster student: optionally removes them from the GitHub organization, detaches
414
   * them from any teams and from the course, and deletes the row.
415
   *
416
   * @param rosterStudent the student to delete
417
   * @param removeFromOrg whether to attempt removal from the GitHub organization
418
   * @return the outcome of the organization removal step
419
   */
420
  private OrgRemovalResult deleteSingleRosterStudent(
421
      RosterStudent rosterStudent, boolean removeFromOrg) {
422
    Course course = rosterStudent.getCourse();
423
424
    boolean orgRemovalAttempted = false;
425
    boolean orgRemovalSuccessful = false;
426
    String orgRemovalErrorMessage = null;
427
428
    // Try to remove the student from the organization if they have a GitHub login
429
    // and removeFromOrg parameter is true
430 1 1. deleteSingleRosterStudent : negated conditional → KILLED
    if (removeFromOrg
431 1 1. deleteSingleRosterStudent : negated conditional → KILLED
        && rosterStudent.getGithubLogin() != null
432 1 1. deleteSingleRosterStudent : negated conditional → KILLED
        && course.getOrgName() != null
433 1 1. deleteSingleRosterStudent : negated conditional → KILLED
        && course.getInstallationId() != null) {
434
      orgRemovalAttempted = true;
435
      try {
436 1 1. deleteSingleRosterStudent : removed call to edu/ucsb/cs156/frontiers/services/OrganizationMemberService::removeOrganizationMember → KILLED
        organizationMemberService.removeOrganizationMember(rosterStudent);
437
        orgRemovalSuccessful = true;
438
      } catch (Exception e) {
439
        log.error("Error removing student from organization: {}", e.getMessage());
440
        orgRemovalErrorMessage = e.getMessage();
441
        // Continue with deletion even if organization removal fails
442
      }
443
    }
444
445 1 1. deleteSingleRosterStudent : negated conditional → KILLED
    if (!rosterStudent.getTeamMembers().isEmpty()) {
446
      rosterStudent
447
          .getTeamMembers()
448 1 1. deleteSingleRosterStudent : removed call to java/util/List::forEach → KILLED
          .forEach(
449
              teamMember -> {
450
                teamMember.getTeam().getTeamMembers().remove(teamMember);
451 1 1. lambda$deleteSingleRosterStudent$0 : removed call to edu/ucsb/cs156/frontiers/entities/TeamMember::setTeam → KILLED
                teamMember.setTeam(null);
452
              });
453
    }
454
455
    course.getRosterStudents().remove(rosterStudent);
456 1 1. deleteSingleRosterStudent : removed call to edu/ucsb/cs156/frontiers/entities/RosterStudent::setCourse → KILLED
    rosterStudent.setCourse(null);
457 1 1. deleteSingleRosterStudent : removed call to edu/ucsb/cs156/frontiers/repositories/RosterStudentRepository::delete → KILLED
    rosterStudentRepository.delete(rosterStudent);
458
459 1 1. deleteSingleRosterStudent : replaced return value with null for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::deleteSingleRosterStudent → KILLED
    return new OrgRemovalResult(orgRemovalAttempted, orgRemovalSuccessful, orgRemovalErrorMessage);
460
  }
461
}

Mutations

88

1.1
Location : lambda$postRosterStudent$0
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:test_InstructorCannotPostRosterStudentForCourseThatDoesNotExist()]
replaced return value with null for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::lambda$postRosterStudent$0 → KILLED

96

1.1
Location : postRosterStudent
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testPostRosterStudent_withSection()]
negated conditional → KILLED

101

1.1
Location : postRosterStudent
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:test_post_fails_on_matching()]
negated conditional → KILLED

102

1.1
Location : postRosterStudent
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:test_post_fails_on_matching()]
replaced return value with null for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::postRosterStudent → KILLED

105

1.1
Location : postRosterStudent
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testPostRosterStudent_withUmail()]
removed call to edu/ucsb/cs156/frontiers/services/UpdateUserService::attachUserToRosterStudent → KILLED

106

1.1
Location : postRosterStudent
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testPostRosterStudentWithNoInstallationId()]
replaced return value with null for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::postRosterStudent → KILLED

122

1.1
Location : lambda$rosterStudentForCourse$0
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:getting_roster_students_for_a_non_existing_course_returns_appropriate_error()]
replaced return value with null for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::lambda$rosterStudentForCourse$0 → KILLED

127

1.1
Location : lambda$rosterStudentForCourse$1
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testRosterStudentsByCourse()]
replaced return value with null for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::lambda$rosterStudentForCourse$1 → KILLED

130

1.1
Location : rosterStudentForCourse
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testRosterStudentsByCourse()]
replaced return value with Collections.emptyList for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::rosterStudentForCourse → KILLED

139

1.1
Location : lambda$upsertStudent$0
Killed by : edu.ucsb.cs156.frontiers.controllers.CanvasControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.CanvasControllerTests]/[method:testUploadRosterFromCanvas_manualStudentStaysManual()]
replaced boolean return with true for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::lambda$upsertStudent$0 → KILLED

2.2
Location : lambda$upsertStudent$0
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:upsertStudent_rejects_when_unsaved_id_match_and_email_match_differ()]
replaced boolean return with false for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::lambda$upsertStudent$0 → KILLED

143

1.1
Location : lambda$upsertStudent$1
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:upsertStudent_rejects_when_unsaved_id_match_and_email_match_differ()]
replaced boolean return with false for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::lambda$upsertStudent$1 → KILLED

2.2
Location : lambda$upsertStudent$1
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:upsertStudent_rejects_when_unsaved_id_match_and_email_match_differ()]
replaced boolean return with true for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::lambda$upsertStudent$1 → KILLED

145

1.1
Location : upsertStudent
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:upsertStudent_rejects_when_unsaved_id_match_and_email_match_differ()]
negated conditional → KILLED

2.2
Location : upsertStudent
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:upsertStudent_rejects_when_unsaved_id_match_and_email_match_differ()]
negated conditional → KILLED

149

1.1
Location : upsertStudent
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:upsertStudent_rejects_when_unsaved_id_match_and_email_match_differ()]
negated conditional → KILLED

151

1.1
Location : upsertStudent
Killed by : edu.ucsb.cs156.frontiers.controllers.CanvasControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.CanvasControllerTests]/[method:testUploadRosterFromCanvas_updatesExistingStudents()]
removed call to edu/ucsb/cs156/frontiers/entities/RosterStudent::setRosterStatus → KILLED

152

1.1
Location : upsertStudent
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsCSVControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsCSVControllerTests]/[method:updates_in_upsert_correctly()]
removed call to edu/ucsb/cs156/frontiers/entities/RosterStudent::setFirstName → KILLED

153

1.1
Location : upsertStudent
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsCSVControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsCSVControllerTests]/[method:updates_in_upsert_correctly()]
removed call to edu/ucsb/cs156/frontiers/entities/RosterStudent::setLastName → KILLED

154

1.1
Location : upsertStudent
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsCSVControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsCSVControllerTests]/[method:updates_in_upsert_correctly()]
removed call to edu/ucsb/cs156/frontiers/entities/RosterStudent::setSection → KILLED

155

1.1
Location : upsertStudent
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:upsertStudent_matches_unsaved_student_by_identity_without_npe()]
replaced return value with null for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::upsertStudent → KILLED

157

1.1
Location : upsertStudent
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:upsertStudent_rejects_when_unsaved_id_match_and_email_match_differ()]
replaced return value with null for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::upsertStudent → KILLED

159

1.1
Location : upsertStudent
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testPostRosterStudent_withSection()]
negated conditional → KILLED

2.2
Location : upsertStudent
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testPostRosterStudent_withSection()]
negated conditional → KILLED

161

1.1
Location : upsertStudent
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testUpsertStudentUpdatingTheEmail()]
negated conditional → KILLED

162

1.1
Location : upsertStudent
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testUpsertStudentUpdatingTheEmail()]
removed call to edu/ucsb/cs156/frontiers/entities/RosterStudent::setRosterStatus → KILLED

163

1.1
Location : upsertStudent
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testUpsertStudentUpdatingTheEmail()]
removed call to edu/ucsb/cs156/frontiers/entities/RosterStudent::setFirstName → KILLED

164

1.1
Location : upsertStudent
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testUpsertStudentUpdatingTheEmail()]
removed call to edu/ucsb/cs156/frontiers/entities/RosterStudent::setLastName → KILLED

165

1.1
Location : upsertStudent
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsCSVControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsCSVControllerTests]/[method:updates_in_upsert_correctly()]
removed call to edu/ucsb/cs156/frontiers/entities/RosterStudent::setSection → KILLED

166

1.1
Location : upsertStudent
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testUpsertStudentUpdatingTheEmail()]
removed call to edu/ucsb/cs156/frontiers/entities/RosterStudent::setEmail → KILLED

167

1.1
Location : upsertStudent
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsCSVControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsCSVControllerTests]/[method:updates_in_upsert_correctly()]
removed call to edu/ucsb/cs156/frontiers/entities/RosterStudent::setStudentId → KILLED

168

1.1
Location : upsertStudent
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testUpsertStudentUpdatingTheEmail()]
replaced return value with null for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::upsertStudent → KILLED

170

1.1
Location : upsertStudent
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testPostRosterStudent_withUmail()]
removed call to edu/ucsb/cs156/frontiers/entities/RosterStudent::setCourse → KILLED

171

1.1
Location : upsertStudent
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testPostRosterStudent_withUmail()]
removed call to edu/ucsb/cs156/frontiers/entities/RosterStudent::setEmail → KILLED

172

1.1
Location : upsertStudent
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testPostRosterStudent_withUmail()]
removed call to edu/ucsb/cs156/frontiers/entities/RosterStudent::setRosterStatus → KILLED

175

1.1
Location : upsertStudent
Killed by : edu.ucsb.cs156.frontiers.controllers.CanvasControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.CanvasControllerTests]/[method:testUploadRosterFromCanvas_setsJOINCOURSEStatusWhenInstallationIdPresent()]
negated conditional → KILLED

176

1.1
Location : upsertStudent
Killed by : edu.ucsb.cs156.frontiers.controllers.CanvasControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.CanvasControllerTests]/[method:testUploadRosterFromCanvas_setsJOINCOURSEStatusWhenInstallationIdPresent()]
removed call to edu/ucsb/cs156/frontiers/entities/RosterStudent::setOrgStatus → KILLED

178

1.1
Location : upsertStudent
Killed by : edu.ucsb.cs156.frontiers.controllers.CanvasControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.CanvasControllerTests]/[method:testUploadRosterFromCanvas_setsPENDINGStatusWhenNoInstallationId()]
removed call to edu/ucsb/cs156/frontiers/entities/RosterStudent::setOrgStatus → KILLED

180

1.1
Location : upsertStudent
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testPostRosterStudent_withSection()]
replaced return value with null for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::upsertStudent → KILLED

192

1.1
Location : lambda$updateCourseMembership$0
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:notFound()]
replaced return value with null for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::lambda$updateCourseMembership$0 → KILLED

193

1.1
Location : updateCourseMembership
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:just_no_org_name()]
negated conditional → KILLED

2.2
Location : updateCourseMembership
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:not_registered_org()]
negated conditional → KILLED

203

1.1
Location : updateCourseMembership
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:job_actually_fires()]
replaced return value with null for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::updateCourseMembership → KILLED

224

1.1
Location : lambda$joinCourseOnGitHub$0
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testLinkGitHub_notFound()]
replaced return value with null for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::lambda$joinCourseOnGitHub$0 → KILLED

226

1.1
Location : joinCourseOnGitHub
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testJoinCourseOnGitHub_nullUser()]
negated conditional → KILLED

2.2
Location : joinCourseOnGitHub
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testJoinCourseOnGitHub_unauthorized()]
negated conditional → KILLED

230

1.1
Location : joinCourseOnGitHub
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:access_denied_on_dropped()]
negated conditional → KILLED

235

1.1
Location : joinCourseOnGitHub
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testJoinCourseOnGitHub_alreadyJoined()]
negated conditional → KILLED

236

1.1
Location : joinCourseOnGitHub
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testJoinCourseOnGitHub_alreadyJoined()]
negated conditional → KILLED

237

1.1
Location : joinCourseOnGitHub
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testJoinCourseOnGitHub_alreadyJoined()]
negated conditional → KILLED

238

1.1
Location : joinCourseOnGitHub
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testJoinCourseOnGitHub_alreadyJoined_Owner()]
negated conditional → KILLED

239

1.1
Location : joinCourseOnGitHub
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testJoinCourseOnGitHub_alreadyJoined()]
replaced return value with null for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::joinCourseOnGitHub → KILLED

243

1.1
Location : joinCourseOnGitHub
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:no_fire_on_no_org_name()]
negated conditional → KILLED

244

1.1
Location : joinCourseOnGitHub
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:no_fire_on_no_installation_id()]
negated conditional → KILLED

245

1.1
Location : joinCourseOnGitHub
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:no_fire_on_no_installation_id()]
replaced return value with null for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::joinCourseOnGitHub → KILLED

248

1.1
Location : joinCourseOnGitHub
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:test_already_part_is_member()]
removed call to edu/ucsb/cs156/frontiers/entities/RosterStudent::setGithubId → KILLED

249

1.1
Location : joinCourseOnGitHub
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:test_already_part_is_member()]
removed call to edu/ucsb/cs156/frontiers/entities/RosterStudent::setGithubLogin → KILLED

251

1.1
Location : joinCourseOnGitHub
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:test_already_part_is_member()]
removed call to edu/ucsb/cs156/frontiers/entities/RosterStudent::setOrgStatus → KILLED

253

1.1
Location : joinCourseOnGitHub
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:test_already_part_is_member()]
negated conditional → KILLED

254

1.1
Location : joinCourseOnGitHub
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:test_fires_invite()]
replaced return value with null for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::joinCourseOnGitHub → KILLED

255

1.1
Location : joinCourseOnGitHub
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:test_already_part_is_member()]
negated conditional → KILLED

2.2
Location : joinCourseOnGitHub
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:cant_invite()]
negated conditional → KILLED

256

1.1
Location : joinCourseOnGitHub
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:test_already_part_is_member()]
replaced return value with null for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::joinCourseOnGitHub → KILLED

259

1.1
Location : joinCourseOnGitHub
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:cant_invite()]
replaced return value with null for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::joinCourseOnGitHub → KILLED

269

1.1
Location : getAssociatedRosterStudents
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testGetAssociatedRosterStudents()]
replaced return value with Collections.emptyList for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::getAssociatedRosterStudents → KILLED

283

1.1
Location : updateRosterStudent
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testUpdateRosterStudent_nullFields()]
negated conditional → KILLED

2.2
Location : updateRosterStudent
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testUpdateRosterStudent_nullStudentId()]
negated conditional → KILLED

3.3
Location : updateRosterStudent
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testUpdateRosterStudent_nullLastName()]
negated conditional → KILLED

286

1.1
Location : updateRosterStudent
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testUpdateRosterStudent_emptyFirstName()]
negated conditional → KILLED

287

1.1
Location : updateRosterStudent
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testUpdateRosterStudent_emptyLastName()]
negated conditional → KILLED

288

1.1
Location : updateRosterStudent
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testUpdateRosterStudent_emptyStudentId()]
negated conditional → KILLED

295

1.1
Location : lambda$updateRosterStudent$0
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testUpdateRosterStudent_notFound()]
replaced return value with null for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::lambda$updateRosterStudent$0 → KILLED

297

1.1
Location : updateRosterStudent
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testUpdateRosterStudent_duplicateStudentId()]
negated conditional → KILLED

301

1.1
Location : updateRosterStudent
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testUpdateRosterStudent_duplicateStudentId()]
negated conditional → KILLED

307

1.1
Location : updateRosterStudent
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testUpdateRosterStudent_success()]
removed call to edu/ucsb/cs156/frontiers/entities/RosterStudent::setFirstName → KILLED

308

1.1
Location : updateRosterStudent
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testUpdateRosterStudent_success()]
removed call to edu/ucsb/cs156/frontiers/entities/RosterStudent::setLastName → KILLED

309

1.1
Location : updateRosterStudent
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testUpdateRosterStudent_newStudentIdNotExists()]
removed call to edu/ucsb/cs156/frontiers/entities/RosterStudent::setStudentId → KILLED

311

1.1
Location : updateRosterStudent
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testUpdateRosterStudent_updatesSectionWhenProvided()]
negated conditional → KILLED

312

1.1
Location : updateRosterStudent
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testUpdateRosterStudent_updatesSectionWhenProvided()]
removed call to edu/ucsb/cs156/frontiers/entities/RosterStudent::setSection → KILLED

315

1.1
Location : updateRosterStudent
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testUpdateRosterStudent_success()]
replaced return value with null for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::updateRosterStudent → KILLED

328

1.1
Location : lambda$restoreRosterStudent$0
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testRestoreRosterStudent_notFound()]
replaced return value with null for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::lambda$restoreRosterStudent$0 → KILLED

329

1.1
Location : restoreRosterStudent
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testRestoreRosterStudent_success()]
removed call to edu/ucsb/cs156/frontiers/entities/RosterStudent::setRosterStatus → KILLED

330

1.1
Location : restoreRosterStudent
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testRestoreRosterStudent_success()]
replaced return value with null for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::restoreRosterStudent → KILLED

355

1.1
Location : lambda$deleteRosterStudent$0
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testDeleteRosterStudent_notFound()]
replaced return value with null for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::lambda$deleteRosterStudent$0 → KILLED

359

1.1
Location : deleteRosterStudent
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testDeleteRosterStudent_success()]
negated conditional → KILLED

360

1.1
Location : deleteRosterStudent
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testDeleteRosterStudent_success()]
replaced return value with null for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::deleteRosterStudent → KILLED

362

1.1
Location : deleteRosterStudent
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testDeleteRosterStudent_withGithubLogin_orgRemovalFails()]
negated conditional → KILLED

363

1.1
Location : deleteRosterStudent
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testDeleteRosterStudent_withRemoveFromOrgTrue_success()]
replaced return value with null for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::deleteRosterStudent → KILLED

366

1.1
Location : deleteRosterStudent
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testDeleteRosterStudent_withGithubLogin_orgRemovalFails()]
replaced return value with null for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::deleteRosterStudent → KILLED

389

1.1
Location : lambda$purgeDroppedRosterStudents$0
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testPurgeDropped_courseNotFound()]
replaced return value with null for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::lambda$purgeDroppedRosterStudents$0 → KILLED

402

1.1
Location : purgeDroppedRosterStudents
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testPurgeDropped_removesFromOrgByDefault_andReportsFailures()]
Changed increment from 1 to -1 → KILLED

403

1.1
Location : purgeDroppedRosterStudents
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testPurgeDropped_removesFromOrgByDefault_andReportsFailures()]
negated conditional → KILLED

404

1.1
Location : purgeDroppedRosterStudents
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testPurgeDropped_removesFromOrgByDefault_andReportsFailures()]
Changed increment from 1 to -1 → KILLED

405

1.1
Location : purgeDroppedRosterStudents
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testPurgeDropped_removesFromOrgByDefault_andReportsFailures()]
negated conditional → KILLED

409

1.1
Location : purgeDroppedRosterStudents
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testPurgeDropped_noDroppedStudents()]
replaced return value with null for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::purgeDroppedRosterStudents → KILLED

430

1.1
Location : deleteSingleRosterStudent
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testDeleteRosterStudent_withGithubLogin_orgRemovalFails()]
negated conditional → KILLED

431

1.1
Location : deleteSingleRosterStudent
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testDeleteRosterStudent_withGithubLogin_orgRemovalFails()]
negated conditional → KILLED

432

1.1
Location : deleteSingleRosterStudent
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testDeleteRosterStudent_withGithubLogin_noOrgName_success()]
negated conditional → KILLED

433

1.1
Location : deleteSingleRosterStudent
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testDeleteRosterStudent_withGithubLogin_noInstallationId_success()]
negated conditional → KILLED

436

1.1
Location : deleteSingleRosterStudent
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testDeleteRosterStudent_withGithubLogin_orgRemovalFails()]
removed call to edu/ucsb/cs156/frontiers/services/OrganizationMemberService::removeOrganizationMember → KILLED

445

1.1
Location : deleteSingleRosterStudent
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testPurgeDropped_removeFromOrgFalse_skipsOrgRemoval_andDetachesTeams()]
negated conditional → KILLED

448

1.1
Location : deleteSingleRosterStudent
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testPurgeDropped_removeFromOrgFalse_skipsOrgRemoval_andDetachesTeams()]
removed call to java/util/List::forEach → KILLED

451

1.1
Location : lambda$deleteSingleRosterStudent$0
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testPurgeDropped_removeFromOrgFalse_skipsOrgRemoval_andDetachesTeams()]
removed call to edu/ucsb/cs156/frontiers/entities/TeamMember::setTeam → KILLED

456

1.1
Location : deleteSingleRosterStudent
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testDeleteRosterStudent_withRemoveFromOrgFalse_noGithubLogin_success()]
removed call to edu/ucsb/cs156/frontiers/entities/RosterStudent::setCourse → KILLED

457

1.1
Location : deleteSingleRosterStudent
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testDeleteRosterStudent_success()]
removed call to edu/ucsb/cs156/frontiers/repositories/RosterStudentRepository::delete → KILLED

459

1.1
Location : deleteSingleRosterStudent
Killed by : edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.controllers.RosterStudentsControllerTests]/[method:testDeleteRosterStudent_success()]
replaced return value with null for edu/ucsb/cs156/frontiers/controllers/RosterStudentsController::deleteSingleRosterStudent → KILLED

Active mutators

Tests examined


Report generated by PIT 1.30.0 support