MilkTheCowsJobFactoryInd.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.repositories.ProfitRepository;
8
import edu.ucsb.cs156.happiercows.repositories.UserCommonsRepository;
9
import edu.ucsb.cs156.happiercows.repositories.UserRepository;
10
import edu.ucsb.cs156.happiercows.services.jobs.JobContextConsumer;
11
12
@Service
13
public class MilkTheCowsJobFactoryInd {
14
15
    @Autowired
16
    private CommonsRepository commonsRepository;
17
18
    @Autowired
19
    private UserCommonsRepository userCommonsRepository;
20
21
    @Autowired
22
    private UserRepository userRepository;
23
24
    @Autowired
25
    private ProfitRepository profitRepository;
26
27
28
    public JobContextConsumer create(Long commonsID) {
29 1 1. create : replaced return value with null for edu/ucsb/cs156/happiercows/jobs/MilkTheCowsJobFactoryInd::create → KILLED
        return new MilkTheCowsJobInd(
30
                commonsRepository,
31
                userCommonsRepository,
32
                userRepository,
33
                profitRepository,
34
                commonsID);
35
    }
36
}

Mutations

29

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

Active mutators

Tests examined


Report generated by PIT 1.7.3