Permalink
Browse files

Issue checkstyle#4587: Moved resources for translation and arraytypes…

…tyle check
  • Loading branch information...
Dmytro Kytsmen
Dmytro Kytsmen committed Jul 5, 2017
1 parent ab10e1a commit 08c60570614b12036fe0c6a42e8e5b2b49bd0344
Showing with 13 additions and 4 deletions.
  1. +4 −1 src/test/java/com/puppycrawl/tools/checkstyle/checks/ArrayTypeStyleCheckTest.java
  2. +8 −2 src/test/java/com/puppycrawl/tools/checkstyle/checks/TranslationCheckTest.java
  3. 0 ...noncompilable/com/puppycrawl/tools/checkstyle/checks/{ → misc/translation}/MyLabelsI18.properties
  4. 0 ...compilable/com/puppycrawl/tools/checkstyle/checks/{ → misc/translation}/MyLabelsI18_de.properties
  5. +1 −1 ...esources/com/puppycrawl/tools/checkstyle/checks/{ → misc/arraytypestyle}/InputArrayTypeStyle.java
  6. 0 ...st/resources/com/puppycrawl/tools/checkstyle/checks/{ → misc/translation}/ButtonLabels.properties
  7. 0 .../resources/com/puppycrawl/tools/checkstyle/checks/{ → misc/translation}/ButtonLabels.translations
  8. 0 ...resources/com/puppycrawl/tools/checkstyle/checks/{ → misc/translation}/ButtonLabels_de.properties
  9. 0 ...sources/com/puppycrawl/tools/checkstyle/checks/{ → misc/translation}/ButtonLabels_de.translations
  10. 0 ...resources/com/puppycrawl/tools/checkstyle/checks/{ → misc/translation}/ButtonLabels_es.properties
  11. 0 ...sources/com/puppycrawl/tools/checkstyle/checks/{ → misc/translation}/ButtonLabels_es.translations
  12. 0 ...s/com/puppycrawl/tools/checkstyle/checks/{ → misc/translation}/ButtonLabels_fr_CA_UNIX.properties
  13. 0 ...com/puppycrawl/tools/checkstyle/checks/{ → misc/translation}/ButtonLabels_fr_CA_UNIX.translations
  14. 0 ...sources/com/puppycrawl/tools/checkstyle/checks/{ → misc/translation}/ButtonLabels_ja.translations
  15. 0 ...est/resources/com/puppycrawl/tools/checkstyle/checks/{ → misc/translation}/MyLabelsI18.properties
  16. 0 .../resources/com/puppycrawl/tools/checkstyle/checks/{ → misc/translation}/MyLabelsI18_de.properties
  17. 0 .../resources/com/puppycrawl/tools/checkstyle/checks/{ → misc/translation}/MyLabelsI18_es.properties
  18. 0 ...est/resources/com/puppycrawl/tools/checkstyle/checks/{ → misc/translation}/PageTitles.translation
  19. 0 .../resources/com/puppycrawl/tools/checkstyle/checks/{ → misc/translation}/PageTitles_de.translation
  20. 0 .../resources/com/puppycrawl/tools/checkstyle/checks/{ → misc/translation}/PageTitles_es.translation
  21. 0 .../resources/com/puppycrawl/tools/checkstyle/checks/{ → misc/translation}/PageTitles_fr.translation
  22. 0 .../resources/com/puppycrawl/tools/checkstyle/checks/{ → misc/translation}/PageTitles_ja.translation
  23. 0 src/test/resources/com/puppycrawl/tools/checkstyle/checks/{ → misc/translation}/app-dev.properties
  24. 0 src/test/resources/com/puppycrawl/tools/checkstyle/checks/{ → misc/translation}/app-stage.properties
  25. 0 ...rces/com/puppycrawl/tools/checkstyle/checks/{ → misc/translation}/messages-translation.properties
  26. 0 ...s/com/puppycrawl/tools/checkstyle/checks/{ → misc/translation}/messages-translation_fr.properties
  27. 0 ...t/resources/com/puppycrawl/tools/checkstyle/checks/{ → misc/translation}/messages_home.properties
  28. 0 ...urces/com/puppycrawl/tools/checkstyle/checks/{ → misc/translation}/messages_home_es_US.properties
  29. 0 .../com/puppycrawl/tools/checkstyle/checks/{ → misc/translation}/messages_home_fr_CA_UNIX.properties
  30. 0 ...t/resources/com/puppycrawl/tools/checkstyle/checks/{ → misc/translation}/messages_test.properties
  31. 0 ...esources/com/puppycrawl/tools/checkstyle/checks/{ → misc/translation}/messages_test_de.properties
  32. 0 ...rces/com/puppycrawl/tools/checkstyle/checks/{ → misc/translation}/messages_translation.properties
  33. 0 ...s/com/puppycrawl/tools/checkstyle/checks/{ → misc/translation}/messages_translation_de.properties
  34. 0 ...s/com/puppycrawl/tools/checkstyle/checks/{ → misc/translation}/messages_translation_ja.properties
@@ -36,7 +36,10 @@
extends BaseCheckTestSupport {
@Override
protected String getPath(String filename) throws IOException {
return super.getPath("checks" + File.separator + filename);
return super.getPath("checks" + File.separator
+ "misc" + File.separator
+ "arraytypestyle" + File.separator
+ filename);
}
@Test
@@ -66,12 +66,18 @@ protected DefaultConfiguration createCheckerConfig(
@Override
protected String getPath(String filename) throws IOException {
return super.getPath("checks" + File.separator + filename);
return super.getPath("checks" + File.separator
+ "misc" + File.separator
+ "translation" + File.separator
+ filename);
}
@Override
protected String getNonCompilablePath(String filename) throws IOException {
return super.getNonCompilablePath("checks" + File.separator + filename);
return super.getNonCompilablePath("checks" + File.separator
+ "misc" + File.separator
+ "translation" + File.separator
+ filename);
}
@Test
@@ -2,7 +2,7 @@
// Test case file for checkstyle.
// Created: 2001
////////////////////////////////////////////////////////////////////////////////
package com.puppycrawl.tools.checkstyle.checks;
package com.puppycrawl.tools.checkstyle.checks.misc.arraytypestyle;
/**
* Test case for ArrayTypeStyle (Java vs C)

0 comments on commit 08c6057

Please sign in to comment.