diff options
author | vasilyeva <vasilyeva@rutarget.ru> | 2017-09-11 22:46:04 +0300 |
---|---|---|
committer | Roman Ivanov <romani@users.noreply.github.com> | 2017-09-20 18:10:57 -0700 |
commit | 9b2f177a03d5696671c2b705d2b1b686f127dcce (patch) | |
tree | e8451f5c69dcdb50b6ad6694322e3b5ea0f78bc2 /src/test/resources/com/puppycrawl/tools/checkstyle/checks | |
parent | f804efa4a1218632de5d25a373e1837ab98e2578 (diff) | |
download | checkstyle-9b2f177a03d5696671c2b705d2b1b686f127dcce.tar.gz |
Issue #4675: increase coverage of pitest-checks-misc to 100%
Diffstat (limited to 'src/test/resources/com/puppycrawl/tools/checkstyle/checks')
6 files changed, 60 insertions, 0 deletions
diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/misc/translation/InputTranslationCheckFireErrors.properties b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/misc/translation/InputTranslationCheckFireErrors.properties new file mode 100644 index 000000000..074b0afab --- /dev/null +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/misc/translation/InputTranslationCheckFireErrors.properties @@ -0,0 +1,2 @@ +someKey=Some key +anotherKey=one more diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/misc/translation/InputTranslationCheckFireErrors_de.properties b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/misc/translation/InputTranslationCheckFireErrors_de.properties new file mode 100644 index 000000000..9bc87ab8d --- /dev/null +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/misc/translation/InputTranslationCheckFireErrors_de.properties @@ -0,0 +1 @@ +someKey=einige Schlüssel diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/misc/translation/InputTranslation_de.txt b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/misc/translation/InputTranslation_de.txt new file mode 100644 index 000000000..9a7ae0711 --- /dev/null +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/misc/translation/InputTranslation_de.txt @@ -0,0 +1,12 @@ +# input file for TranslationCheck + +# a key that is available in all translations +hello=Hallo + +# whitespace at end of key should be trimmed before comparing. +# the german translation does not contain whitespace, no error should +# be reported here +cancel=Abbrechen + +# a key that is missing in german translation +#only.english=only english diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/misc/translation/OutputTranslationCheckLinux.xml b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/misc/translation/OutputTranslationCheckLinux.xml new file mode 100644 index 000000000..865791fde --- /dev/null +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/misc/translation/OutputTranslationCheckLinux.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<checkstyle version="8.3-SNAPSHOT"> +<file name="path_to_file/InputTranslationCheckFireErrors.properties"> +</file> +<file name="path_to_file/InputTranslationCheckFireErrors_de.properties"> +</file> +<file name="path_to_file"> +<error line="0" severity="error" message="%s" source="com.puppycrawl.tools.checkstyle.checks.TranslationCheck"/> +</file> +<file name="path_to_file/InputTranslationCheckFireErrors_de.properties"> +<error line="0" severity="error" message="%s" source="com.puppycrawl.tools.checkstyle.checks.TranslationCheck"/> +</file> +<file name="path_to_file/InputTranslationCheckFireErrors.properties"> +</file> +</checkstyle> diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/misc/translation/OutputTranslationCheckMacOS.xml b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/misc/translation/OutputTranslationCheckMacOS.xml new file mode 100644 index 000000000..34a16cbbe --- /dev/null +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/misc/translation/OutputTranslationCheckMacOS.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<checkstyle version="8.3-SNAPSHOT"> +<file name="path_to_file/InputTranslationCheckFireErrors.properties"> +</file> +<file name="path_to_file/InputTranslationCheckFireErrors_de.properties"> +</file> +<file name="path_to_file"> +<error line="0" severity="error" message="%s" source="com.puppycrawl.tools.checkstyle.checks.TranslationCheck"/> +</file> +<file name="path_to_file/InputTranslationCheckFireErrors.properties"> +</file> +<file name="path_to_file/InputTranslationCheckFireErrors_de.properties"> +<error line="0" severity="error" message="%s" source="com.puppycrawl.tools.checkstyle.checks.TranslationCheck"/> +</file> +</checkstyle> diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/misc/translation/OutputTranslationCheckWindows.xml b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/misc/translation/OutputTranslationCheckWindows.xml new file mode 100644 index 000000000..81ba62c34 --- /dev/null +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/misc/translation/OutputTranslationCheckWindows.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<checkstyle version="8.3-SNAPSHOT"> +<file name="path_to_file\InputTranslationCheckFireErrors.properties"> +</file> +<file name="path_to_file\InputTranslationCheckFireErrors_de.properties"> +</file> +<file name="path_to_file"> +<error line="0" severity="error" message="%s" source="com.puppycrawl.tools.checkstyle.checks.TranslationCheck"/> +</file> +<file name="path_to_file\InputTranslationCheckFireErrors_de.properties"> +<error line="0" severity="error" message="%s" source="com.puppycrawl.tools.checkstyle.checks.TranslationCheck"/> +</file> +<file name="path_to_file\InputTranslationCheckFireErrors.properties"> +</file> +</checkstyle> |