Commit 8026d55c authored by Luc Maisonobe's avatar Luc Maisonobe

Fixed wrong test.

Fixes #505
parent 04cb8585
......@@ -34,7 +34,7 @@ public class OrekitInternalError extends IllegalStateException implements Locali
/** Parts to insert in the format (no translation). */
private final String[] parts = new String[] {
"orekit-developers@orekit.org"
"https://gitlab.orekit.org/orekit/orekit/issues"
};
/** Create an exception with localized message.
......
# internal error, please notify development team by creating an issue at {0}
INTERNAL_ERROR = erreurs interne, merci de signaler le problème en ouvrant une fiche d''anomalie sur {0}
INTERNAL_ERROR = erreur interne, merci de signaler le problème en ouvrant une fiche d''anomalie sur {0}
# altitude ({0} m) is below the {1} m allowed threshold
ALTITUDE_BELOW_ALLOWED_THRESHOLD = altitude ({0} m) au dessous de la limite autorisée de {1} m
......
......@@ -29,10 +29,10 @@ public class OrekitInternalErrorTest {
OrekitInternalError e = new OrekitInternalError(null);
Assert.assertEquals(OrekitMessages.INTERNAL_ERROR, e.getSpecifier());
Assert.assertEquals(1, e.getParts().length);
Assert.assertEquals("orekit-developers@orekit.org", e.getParts()[0]);
Assert.assertTrue(e.getMessage().contains("orekit-developers@orekit.org"));
Assert.assertEquals("https://gitlab.orekit.org/orekit/orekit/issues", e.getParts()[0]);
Assert.assertTrue(e.getMessage().contains("https://gitlab.orekit.org/orekit/orekit/issues"));
Assert.assertEquals(e.getMessage(Locale.getDefault()), e.getLocalizedMessage());
Assert.assertEquals("erreur interne, contactez la maintenance à orekit-developers@orekit.org",
Assert.assertEquals("erreur interne, merci de signaler le problème en ouvrant une fiche d'anomalie sur https://gitlab.orekit.org/orekit/orekit/issues",
e.getMessage(Locale.FRENCH));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment