AuthErrorCode.java

1
package com.project.auth.application.support.exception;
2
3
public enum AuthErrorCode implements ClientFacingErrorCode {
4
    AUTHENTICATION_REQUIRED("AUTH-001", "인증이 필요합니다."),
5
    ACCESS_DENIED("AUTH-002", "접근 권한이 없습니다."),
6
    KEYCLOAK_CLAIMS_INVALID("AUTH-003", "Keycloak 토큰 클레임이 올바르지 않습니다."),
7
    KEYCLOAK_USER_NOT_FOUND("AUTH-004", "연결된 내부 Keycloak 사용자를 찾을 수 없습니다.");
8
9
    private final String code;
10
    private final String message;
11
12
    AuthErrorCode(String code, String message) {
13
        this.code = code;
14
        this.message = message;
15
    }
16
17
    @Override
18
    public String code() {
19 1 1. code : replaced return value with "" for com/project/auth/application/support/exception/AuthErrorCode::code → KILLED
        return code;
20
    }
21
22
    @Override
23
    public String message() {
24 1 1. message : replaced return value with "" for com/project/auth/application/support/exception/AuthErrorCode::message → KILLED
        return message;
25
    }
26
}

Mutations

19

1.1
Location : code
Killed by : com.project.auth.application.support.exception.ErrorCodeEnumTest.[engine:junit-jupiter]/[class:com.project.auth.application.support.exception.ErrorCodeEnumTest]/[test-template:auth_error_code_exposes_code_and_message(com.project.auth.application.support.exception.AuthErrorCode)]/[test-template-invocation:#3]
replaced return value with "" for com/project/auth/application/support/exception/AuthErrorCode::code → KILLED

24

1.1
Location : message
Killed by : com.project.auth.application.support.exception.ErrorCodeEnumTest.[engine:junit-jupiter]/[class:com.project.auth.application.support.exception.ErrorCodeEnumTest]/[test-template:auth_error_code_exposes_code_and_message(com.project.auth.application.support.exception.AuthErrorCode)]/[test-template-invocation:#3]
replaced return value with "" for com/project/auth/application/support/exception/AuthErrorCode::message → KILLED

Active mutators

Tests examined


Report generated by PIT 1.19.1