I am trying to run unit tests for a Play 2 based application, and we are having a message problem. Apparently, this seam is not correctly initialized or is not initialized at all.
@Test public void testMessage() throws IOException { running(fakeApplication(), new Runnable() { @Override public void run() { Locale.setDefault(new Locale("en")); String test = Messages.get("test.test"); System.out.println("DUMMY --" + test); } }); }
The output of the above code is "DUMMY - test.test", although I am expecting a permitted message.
Is there a problem with the message? Do I need to download the plugin / posts myself?
Thanks for the help in advance.
source share