PersonMapperImpl.java

1
package com.seshira.events.person.domain.application.mappers;
2
3
import com.seshira.events.person.domain.models.Person;
4
import com.seshira.events.person.ports.inbound.dto.PersonDto;
5
import java.util.UUID;
6
import javax.annotation.processing.Generated;
7
import org.springframework.stereotype.Component;
8
9
@Generated(
10
    value = "org.mapstruct.ap.MappingProcessor",
11
    date = "2026-02-18T08:06:42+0000",
12
    comments = "version: 1.6.3, compiler: javac, environment: Java 21.0.10 (Eclipse Adoptium)"
13
)
14
@Component
15
public class PersonMapperImpl implements PersonMapper {
16
17
    @Override
18
    public PersonDto toDto(Person person) {
19 2 1. toDto : removed conditional - replaced equality check with false → SURVIVED
2. toDto : removed conditional - replaced equality check with true → KILLED
        if ( person == null ) {
20
            return null;
21
        }
22
23
        UUID id = null;
24
        String givenName = null;
25
        String familyName = null;
26
        String nationality = null;
27
        String email = null;
28
29
        id = person.getId();
30
        givenName = person.getGivenName();
31
        familyName = person.getFamilyName();
32
        nationality = person.getNationality();
33
        email = person.getEmail();
34
35
        PersonDto personDto = new PersonDto( id, givenName, familyName, nationality, email );
36
37 1 1. toDto : replaced return value with null for com/seshira/events/person/domain/application/mappers/PersonMapperImpl::toDto → KILLED
        return personDto;
38
    }
39
}

Mutations

19

1.1
Location : toDto
Killed by : none
removed conditional - replaced equality check with false → SURVIVED
Covering tests

2.2
Location : toDto
Killed by : com.seshira.events.person.application.services.CreatePersonServiceTest.[engine:junit-jupiter]/[class:com.seshira.events.person.application.services.CreatePersonServiceTest]/[method:testCreatePersonWithNonAsciiCharacters()]
removed conditional - replaced equality check with true → KILLED

37

1.1
Location : toDto
Killed by : com.seshira.events.person.application.services.CreatePersonServiceTest.[engine:junit-jupiter]/[class:com.seshira.events.person.application.services.CreatePersonServiceTest]/[method:testCreatePersonWithNonAsciiCharacters()]
replaced return value with null for com/seshira/events/person/domain/application/mappers/PersonMapperImpl::toDto → KILLED

Active mutators

Tests examined


Report generated by PIT 1.22.1