UpdateCourseDataRangeOfQuartersSingleSubjectJob.java

1
package edu.ucsb.cs156.courses.jobs;
2
3
import java.util.List;
4
import java.util.Optional;
5
6
import edu.ucsb.cs156.courses.collections.ConvertedSectionCollection;
7
import edu.ucsb.cs156.courses.documents.ConvertedSection;
8
import edu.ucsb.cs156.courses.models.Quarter;
9
import edu.ucsb.cs156.courses.services.UCSBCurriculumService;
10
import edu.ucsb.cs156.courses.services.jobs.JobContext;
11
import edu.ucsb.cs156.courses.services.jobs.JobContextConsumer;
12
import lombok.AllArgsConstructor;
13
import lombok.Getter;
14
import lombok.extern.slf4j.Slf4j;
15
16
@AllArgsConstructor
17
@Slf4j
18
public class UpdateCourseDataRangeOfQuartersSingleSubjectJob implements JobContextConsumer {
19
20
    @Getter
21
    private String subjectArea;
22
    @Getter
23
    private String start_quarterYYYYQ;
24
    @Getter
25
    private String end_quarterYYYYQ;
26
    @Getter
27
    private UCSBCurriculumService ucsbCurriculumService;
28
    @Getter
29
    private ConvertedSectionCollection convertedSectionCollection;
30
   
31
    @Override
32
    public void accept(JobContext ctx) throws Exception {
33
        List<Quarter> quarters = Quarter.quarterList(start_quarterYYYYQ, end_quarterYYYYQ);
34
        for (Quarter quarter : quarters) {
35
            String quarterYYYYQ = quarter.getYYYYQ();
36 1 1. accept : removed call to edu/ucsb/cs156/courses/jobs/UpdateCourseDataRangeOfQuartersJob::updateCourses → KILLED
            UpdateCourseDataRangeOfQuartersJob.updateCourses(ctx, quarterYYYYQ, subjectArea, ucsbCurriculumService, convertedSectionCollection);
37
        }
38
    }
39
}

Mutations

36

1.1
Location : accept
Killed by : edu.ucsb.cs156.courses.jobs.UpdateCourseDataRangeOfQuartersSingleSubjectJobTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.courses.jobs.UpdateCourseDataRangeOfQuartersSingleSubjectJobTests]/[method:test_log_output_success()]
removed call to edu/ucsb/cs156/courses/jobs/UpdateCourseDataRangeOfQuartersJob::updateCourses → KILLED

Active mutators

Tests examined


Report generated by PIT 1.7.3