From 11bdcae2a8803cb0636fbc16d0c7e4ece2855f97 Mon Sep 17 00:00:00 2001 From: serso Date: Mon, 4 Jan 2016 12:32:27 +0100 Subject: [PATCH] Make messages test more descriptive --- .../android/calculator/CalculatorMessagesTest.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/src/test/java/org/solovyev/android/calculator/CalculatorMessagesTest.java b/core/src/test/java/org/solovyev/android/calculator/CalculatorMessagesTest.java index 1762fff9..b8c0f7d9 100644 --- a/core/src/test/java/org/solovyev/android/calculator/CalculatorMessagesTest.java +++ b/core/src/test/java/org/solovyev/android/calculator/CalculatorMessagesTest.java @@ -41,11 +41,12 @@ public class CalculatorMessagesTest { for (Locale locale : LOCALES) { final String text = message.getLocalizedMessage(locale); assertFalse(text.isEmpty()); + final String errorMessage = "Message=" + id + ", locale=" + locale; if (arguments.size() == 1) { - assertTrue(text.contains("param0")); + assertTrue(errorMessage, text.contains("param0")); } else if (arguments.size() == 2) { - assertTrue(text.contains("param1")); - assertTrue(text.contains("param2")); + assertTrue(errorMessage, text.contains("param1")); + assertTrue(errorMessage, text.contains("param2")); } }