From 2dbdf556944bbc2f201b76b8052ae00d39d3b051 Mon Sep 17 00:00:00 2001 From: Emmanuel Bigeon Date: Thu, 9 Jun 2016 19:19:35 -0400 Subject: [PATCH] Update l10n for message format --- .../fr/bigeon/gclc/socket/SocketConsoleApplicationTest.java | 2 +- .../main/resources/fr/bigeon/gclc/l10n/messages.properties | 4 ++-- gclc/src/test/java/fr/bigeon/gclc/ConsoleApplicationTest.java | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/gclc-socket/src/test/java/fr/bigeon/gclc/socket/SocketConsoleApplicationTest.java b/gclc-socket/src/test/java/fr/bigeon/gclc/socket/SocketConsoleApplicationTest.java index 91d5907..bb13883 100644 --- a/gclc-socket/src/test/java/fr/bigeon/gclc/socket/SocketConsoleApplicationTest.java +++ b/gclc-socket/src/test/java/fr/bigeon/gclc/socket/SocketConsoleApplicationTest.java @@ -77,7 +77,7 @@ public class SocketConsoleApplicationTest { String fromServer; int i = 0; - String[] cmds = {"help", "test", "close"}; + String[] cmds = {"help", "toto", "test", "close"}; while ((fromServer = in.readLine()) != null) { System.out.println("Server: \n" + ENCODER.decode(fromServer)); if (fromServer.equals("Bye.")) { diff --git a/gclc/src/main/resources/fr/bigeon/gclc/l10n/messages.properties b/gclc/src/main/resources/fr/bigeon/gclc/l10n/messages.properties index 380b34f..944a47f 100644 --- a/gclc/src/main/resources/fr/bigeon/gclc/l10n/messages.properties +++ b/gclc/src/main/resources/fr/bigeon/gclc/l10n/messages.properties @@ -1,2 +1,2 @@ -CommandProvider.unrecognized=Unrecognized command '{0}' -ConsoleApplication.cmd.failed=The command '{0}' failed due to : +CommandProvider.unrecognized=Unrecognized command "{0}" +ConsoleApplication.cmd.failed=The command "{0}" failed due to : diff --git a/gclc/src/test/java/fr/bigeon/gclc/ConsoleApplicationTest.java b/gclc/src/test/java/fr/bigeon/gclc/ConsoleApplicationTest.java index 758cbdb..0c55f1f 100644 --- a/gclc/src/test/java/fr/bigeon/gclc/ConsoleApplicationTest.java +++ b/gclc/src/test/java/fr/bigeon/gclc/ConsoleApplicationTest.java @@ -76,7 +76,7 @@ public class ConsoleApplicationTest { final PipedInputStream snk = new PipedInputStream(); PrintStream out = new PrintStream(new PipedOutputStream(snk)); final ConsoleTestApplication app = new ConsoleTestApplication( - new SystemConsoleManager(out, in)); + new SystemConsoleManager(System.out, in)); Thread th = new Thread(new Runnable() { @Override @@ -93,6 +93,7 @@ public class ConsoleApplicationTest { public void run() { try (PrintWriter writer = new PrintWriter(src, true)) { writer.println("test"); + writer.println("toto"); writer.println("long"); writer.println("exit"); }