RecordCommonStatsJobFactory.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.repositories.CommonsRepository;
7
import edu.ucsb.cs156.happiercows.services.CommonStatsService;
8
import edu.ucsb.cs156.happiercows.services.jobs.JobContextConsumer;
9
10
@Service
11
public class RecordCommonStatsJobFactory {
12
    
13
    @Autowired
14
    private CommonsRepository commonsRepository;
15
16
    @Autowired
17
    private CommonStatsService commonStatsService;
18
19
    public JobContextConsumer create() {
20 1 1. create : replaced return value with null for edu/ucsb/cs156/happiercows/jobs/RecordCommonStatsJobFactory::create → KILLED
        return new RecordCommonStatsJob(
21
            commonStatsService,
22
            commonsRepository);
23
    }
24
    
25
}

Mutations

20

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

Active mutators

Tests examined


Report generated by PIT 1.7.3