UpdateCourseDataJobFactory.java

1
package edu.ucsb.cs156.courses.jobs;
2
3
import org.springframework.beans.factory.annotation.Autowired;
4
import org.springframework.stereotype.Service;
5
6
import edu.ucsb.cs156.courses.collections.ConvertedSectionCollection;
7
import edu.ucsb.cs156.courses.collections.UpdateCollection;
8
import edu.ucsb.cs156.courses.services.UCSBCurriculumService;
9
import lombok.extern.slf4j.Slf4j;
10
11
@Service
12
@Slf4j
13
public class UpdateCourseDataJobFactory  {
14
15
    @Autowired
16
    private UCSBCurriculumService ucsbCurriculumService;
17
18
    @Autowired
19
    private ConvertedSectionCollection convertedSectionCollection;
20
21
    @Autowired
22
    private UpdateCollection updateCollection;
23
24
    public UpdateCourseDataJob create(String subjectArea, String quarterYYYYQ) {
25
        log.info("ucsbCurriculumService = " + ucsbCurriculumService);
26
        log.info("convertedSectionCollection = " + convertedSectionCollection);
27
        log.info("updateCollection = " + updateCollection);
28 1 1. create : replaced return value with null for edu/ucsb/cs156/courses/jobs/UpdateCourseDataJobFactory::create → KILLED
        return new UpdateCourseDataJob(subjectArea, quarterYYYYQ, ucsbCurriculumService, convertedSectionCollection, updateCollection);
29
    }
30
}

Mutations

28

1.1
Location : create
Killed by : edu.ucsb.cs156.courses.jobs.UpdateCourseDataJobFactoryTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.courses.jobs.UpdateCourseDataJobFactoryTests]/[method:test_create()]
replaced return value with null for edu/ucsb/cs156/courses/jobs/UpdateCourseDataJobFactory::create → KILLED

Active mutators

Tests examined


Report generated by PIT 1.7.3