InstructorReportJobSingleCommonsFactory.java

1
package edu.ucsb.cs156.happiercows.jobs;
2
3
import org.springframework.beans.factory.annotation.Autowired;
4
import org.springframework.stereotype.Service;
5
6
import edu.ucsb.cs156.happiercows.services.ReportService;
7
import edu.ucsb.cs156.happiercows.services.jobs.JobContextConsumer;
8
9
@Service
10
public class InstructorReportJobSingleCommonsFactory {
11
12
    @Autowired
13
    private ReportService reportService;
14
15
    public JobContextConsumer create(long commonsId) {
16 1 1. create : replaced return value with null for edu/ucsb/cs156/happiercows/jobs/InstructorReportJobSingleCommonsFactory::create → KILLED
        return new InstructorReportJobSingleCommons(commonsId, reportService);
17
    }
18
  
19
}

Mutations

16

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

Active mutators

Tests examined


Report generated by PIT 1.7.3