@@ -0,0 +1,893 @@
+package org.openforis.collect.manager;%0A%0Aimport static org.junit.Assert.assertNotNull;%0Aimport static org.junit.Assert.assertNull;%0A%0Aimport java.util.Locale;%0A%0Aimport org.junit.Test;%0Aimport org.openforis.collect.CollectIntegrationTest;%0A%0A/**%0A * %0A * @author S. Ricci%0A *%0A */%0Apublic class ValidationMessageBuilderIntegrationTest extends CollectIntegrationTest %7B%0A%09%0A//%09private CollectSurvey survey;%0A%09%0A//%09@BeforeClass%0A//%09private void init() throws IdmlParseException %7B%0A//%09%09this.survey = loadSurvey();%0A//%09%7D%0A%09%0A%09@Test%0A%09public void defaultLanguageMessageTest() %7B%0A%09%09ResourceBundleMessageSource messageSource = new ResourceBundleMessageSource();%0A%09%09%7B%0A%09%09%09String message = messageSource.getMessage(Locale.US, %22validation.codeError%22);%0A%09%09%09assertNotNull(message);%0A%09%09%7D%0A%09%09//not existent message%0A%09%09%7B%0A%09%09%09String message = messageSource.getMessage(Locale.ITALY, %22validation.codeError%22);%0A%09%09%09assertNull(message);%0A%09%09%7D%0A%09%7D%0A%09%0A%7D%0A

Test validation messages generation