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.services.UCSBCurriculumService;
8
import lombok.extern.slf4j.Slf4j;
9
10
@Service
11
@Slf4j
12
public class UpdateCourseDataJobFactory  {
13
14
    @Autowired
15
    private UCSBCurriculumService ucsbCurriculumService;
16
17
    @Autowired
18
    private ConvertedSectionCollection convertedSectionCollection;
19
20
    public UpdateCourseDataJob create(String subjectArea, String quarterYYYYQ) {
21
        log.info("ucsbCurriculumService = " + ucsbCurriculumService);
22
        log.info("convertedSectionCollection = " + convertedSectionCollection);
23 1 1. create : replaced return value with null for edu/ucsb/cs156/courses/jobs/UpdateCourseDataJobFactory::create → KILLED
        return new UpdateCourseDataJob(subjectArea, quarterYYYYQ, ucsbCurriculumService, convertedSectionCollection);
24
    }
25
}

Mutations

23

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