assertFalse(pattern.equals(ex.getMessage()));
assertFalse(ex.getMessage().equals(ex.getMessage(Locale.FRENCH)));
}
public void testConstructorArrayPatternArgumentsCause(){
LocalizedFormats pattern = LocalizedFormats.EVALUATION_FAILED;
Object[] arguments = { Double.valueOf(0.0) };
String inMsg = "inner message";
Exception cause = new Exception(inMsg);
FunctionEvaluationException ex =
new FunctionEvaluationException(cause, new double[] { 0, 1, 2 }, pattern, arguments);
assertEquals(cause, ex.getCause());
assertEquals(pattern, ex.getGeneralPattern());
assertEquals(arguments.length, ex.getArguments().length);
for (int i = 0; i < arguments.length; ++i) {
assertEquals(arguments[i], ex.getArguments()[i]);
}
assertFalse(pattern.equals(ex.getMessage()));
assertFalse(ex.getMessage().equals(ex.getMessage(Locale.FRENCH)));
assertEquals(0.0, ex.getArgument()[0], 0);
assertEquals(1.0, ex.getArgument()[1], 0);
assertEquals(2.0, ex.getArgument()[2], 0);
}