UpdateCowHealthJobFactoryInd.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.entities.jobs.Job;
7
import edu.ucsb.cs156.happiercows.repositories.CommonsRepository;
8
import edu.ucsb.cs156.happiercows.repositories.UserCommonsRepository;
9
import edu.ucsb.cs156.happiercows.repositories.UserRepository;
10
import edu.ucsb.cs156.happiercows.services.CommonsPlusBuilderService;
11
import edu.ucsb.cs156.happiercows.services.jobs.JobContextConsumer;
12
import lombok.extern.slf4j.Slf4j;
13
14
@Service
15
@Slf4j
16
public class UpdateCowHealthJobFactoryInd  {
17
18
    @Autowired 
19
    private CommonsRepository commonsRepository;
20
  
21
    @Autowired
22
    private UserCommonsRepository userCommonsRepository;
23
24
    @Autowired
25
    private UserRepository userRepository;
26
27
    @Autowired
28
    private CommonsPlusBuilderService commonsPlusBuilderService;
29
30
    public JobContextConsumer create(Long commonsID) {
31
        log.info("commonsRepository = " + commonsRepository);
32
        log.info("userCommonsRepository = " + userCommonsRepository);
33 1 1. create : replaced return value with null for edu/ucsb/cs156/happiercows/jobs/UpdateCowHealthJobFactoryInd::create → KILLED
        return new UpdateCowHealthJobInd(commonsRepository, userCommonsRepository, userRepository, commonsPlusBuilderService, commonsID);
34
    }
35
}

Mutations

33

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

Active mutators

Tests examined


Report generated by PIT 1.7.3