CourseInfo.java

1
package edu.ucsb.cs156.courses.documents;
2
3
import lombok.AllArgsConstructor;
4
import lombok.Builder;
5
import lombok.Data;
6
import lombok.NoArgsConstructor;
7
8
/**
9
 * CourseInfo is an object that stores all of the information about a course from the UCSB Courses
10
 * API except for the section info
11
 */
12
@Data
13
@Builder
14
@NoArgsConstructor
15
@AllArgsConstructor
16
public class CourseInfo implements Cloneable {
17
  private String quarter;
18
  private String courseId;
19
  private String title;
20
  private String description;
21
22
  public Object clone() throws CloneNotSupportedException {
23
    CourseInfo newCourseInfo = (CourseInfo) super.clone();
24 1 1. clone : replaced return value with null for edu/ucsb/cs156/courses/documents/CourseInfo::clone → KILLED
    return newCourseInfo;
25
  }
26
}

Mutations

24

1.1
Location : clone
Killed by : edu.ucsb.cs156.courses.documents.CourseInfoTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.courses.documents.CourseInfoTests]/[method:test_clone()]
replaced return value with null for edu/ucsb/cs156/courses/documents/CourseInfo::clone → KILLED

Active mutators

Tests examined


Report generated by PIT 1.7.3