Language.java

1
package com.jsql.view.swing.dialog.translate;
2
3
import com.jsql.view.swing.util.UiUtil;
4
5
import javax.swing.*;
6
7
public enum Language {
8
    
9
    AR("Arabic", "ar", UiUtil.ICON_FLAG_AR),
10
    RU("Russian", "ru", UiUtil.ICON_FLAG_RU),
11
    ZH("Chinese", "zh", UiUtil.ICON_FLAG_ZH),
12
    TR("Turkish", "tr", UiUtil.ICON_FLAG_TR),
13
    EN("English", "en", UiUtil.ICON_FLAG_EN),
14
    FR("French", "fr", UiUtil.ICON_FLAG_FR),
15
    HI("Hindi", "hi", UiUtil.ICON_FLAG_HI),
16
    CS("Czech", "cs", UiUtil.ICON_FLAG_CS),
17
    DE("German", "de", UiUtil.ICON_FLAG_DE),
18
    NL("Dutch", "nl", UiUtil.ICON_FLAG_NL),
19
    IN_ID("Bahasa Indonesia", "in_ID", UiUtil.ICON_FLAG_IN_ID),
20
    IT("Italian", "it", UiUtil.ICON_FLAG_IT),
21
    ES("Spanish", "es", UiUtil.ICON_FLAG_ES),
22
    PT("Portuguese", "pt", UiUtil.ICON_FLAG_PT),
23
    PL("Polish", "pl", UiUtil.ICON_FLAG_PL),
24
    KO("Korean", "ko", UiUtil.ICON_FLAG_KO),
25
    JA("Japanese", "ja", UiUtil.ICON_FLAG_JA),
26
    RO("Romanian", "ro", UiUtil.ICON_FLAG_RO),
27
    TA("Tamil", "ta", UiUtil.ICON_FLAG_LK),
28
    SE("Swedish", "se", UiUtil.ICON_FLAG_SE),
29
    FI("Finnish", "fi", UiUtil.ICON_FLAG_FI),
30
    OT("another language", null, null);
31
32
    private final String nameEnglish;
33
    private final Icon flag;
34
    private final String labelLocale;
35
    
36
    Language(String nameEnglish, String labelLocale, Icon flag) {
37
        
38
        this.nameEnglish = nameEnglish;
39
        this.flag = flag;
40
        this.labelLocale = labelLocale;
41
    }
42
    
43
    public Icon getFlag() {
44 1 1. getFlag : replaced return value with null for com/jsql/view/swing/dialog/translate/Language::getFlag → NO_COVERAGE
        return this.flag;
45
    }
46
    
47
    @Override
48
    public String toString() {
49 1 1. toString : replaced return value with "" for com/jsql/view/swing/dialog/translate/Language::toString → NO_COVERAGE
        return this.nameEnglish;
50
    }
51
    
52
    public String getLabelLocale() {
53 1 1. getLabelLocale : replaced return value with "" for com/jsql/view/swing/dialog/translate/Language::getLabelLocale → NO_COVERAGE
        return this.labelLocale;
54
    }
55
}

Mutations

44

1.1
Location : getFlag
Killed by : none
replaced return value with null for com/jsql/view/swing/dialog/translate/Language::getFlag → NO_COVERAGE

49

1.1
Location : toString
Killed by : none
replaced return value with "" for com/jsql/view/swing/dialog/translate/Language::toString → NO_COVERAGE

53

1.1
Location : getLabelLocale
Killed by : none
replaced return value with "" for com/jsql/view/swing/dialog/translate/Language::getLabelLocale → NO_COVERAGE

Active mutators

Tests examined


Report generated by PIT 1.16.1