I'm using the Documentum REST SDK 16.4 to implement custom resources. I used the Maven toolkit to generate the project using Eclipse, implemented my custom resources, defined a couple of messages in the provided rest-extension-messages.properties file, built and deployed the WAR and everything works fine.
My only problem is when I want to unit test my custom resources, my custom error messages are not found. For example, when I run a JUnit test which is supposed to throw an exception, I get the error org.springframework.context.NoSuchMessageException: No message found under code 'E_CREATE_ALIASSET_EXISTED' for locale 'en_CH'.
With the deployed webapp, these error messages are displayed just fine. I suppose that I must add some initialization code to the test classes generated by the Maven toolkit? Any ideas?