Skip to content

test execution is failing on non EN locales #16233

@romani

Description

@romani

test execution is failing on non EN locales:

$ ./.ci/validation.sh test-de
....
[ERROR] Failures: 
[ERROR]   PackageObjectFactoryTest.testCreateModuleWithTryInAllRegisteredPackages:537 
Invalid exception message
value of              : getMessage()
expected to start with: Unable to instantiate 'PackageObjectFactoryTest$MockClass' class, 
it is also not possible to instantiate it as 
com.puppycrawl.tools.checkstyle.PackageObjectFactoryTest$MockClass, 
PackageObjectFactoryTest$MockClassCheck, 
com.puppycrawl.tools.checkstyle.PackageObjectFactoryTest$MockClassCheck

but was               : Fehler beim Instanziieren der Klasse 'PackageObjectFactoryTest$MockClass'. 
Es war auch nicht möglich, sie als 
com.puppycrawl.tools.checkstyle.PackageObjectFactoryTest$MockClass,
 PackageObjectFactoryTest$MockClassCheck,
 com.puppycrawl.tools.checkstyle.PackageObjectFactoryTest$MockClassCheck
 zu instanziieren. Bitte prüfen Sie, dass der Klassenname als kanonischer 
Name angegeben wurde oder lesen Sie, wie Sie abgekürzte Namen konfigurieren:
 https://checkstyle.org/config.html#Packages. Bitte prüfen Sie auch, dass der angegebene 
ClassLoader des Checkers richtig konfiguriert ist.
[INFO] 
[ERROR] Tests run: 5142, Failures: 1, Errors: 0, Skipped: 53

Expected: it should pass.
Revert #16234 to prove that it works.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions