Commit 347ad116 authored by Noel Alonso's avatar Noel Alonso
Browse files

Cambia tests por cambio de comportamiento

parent da1f4715
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -2,9 +2,6 @@ server.port=8080
server.servlet.context-path=/api
spring.mvc.servlet.path=/atlas/commands

spring.mvc.locale-resolver=fixed
spring.mvc.locale=es_ES

microservice.view.path=/atlas/view

redmic.user-settings.enabled=true
+4 −4
Original line number Diff line number Diff line
@@ -106,7 +106,7 @@ public class ExceptionsTranslationTest {
	}

	@Test
	public void getRussianLanguageMessage_returnDefaultI18nMessage_WhenI18nFileNotExist() {
	public void getRussianLanguageMessage_returnCode_WhenI18nFileNotExist() {

		try {
			aggregate.process(new UpdateThemeInspireCommand());
@@ -118,7 +118,7 @@ public class ExceptionsTranslationTest {

			String mess = messageSource.getMessage(code, fields, new Locale("ru", "RU"));

			Assert.assertEquals(getMessage(code, fields, resourcePathSpanish), mess);
			Assert.assertEquals(code, mess);
		}
	}

+0 −3
Original line number Diff line number Diff line
@@ -2,9 +2,6 @@ server.port=8080
server.servlet.context-path=/api
spring.mvc.servlet.path=/atlas/view

spring.mvc.locale-resolver=fixed
spring.mvc.locale=es_ES

microservice.commands.path=/atlas/commands

spring.profiles.active=@spring.profiles.active@
+4 −4
Original line number Diff line number Diff line
@@ -104,7 +104,7 @@ public class ExceptionsTranslationTest {
	}

	@Test
	public void getRussianLanguageMessage_returnDefaultI18nMessage_WhenI18nFileNotExist() {
	public void getRussianLanguageMessage_returnCode_WhenI18nFileNotExist() {

		try {
			repository.findById("1");
@@ -116,7 +116,7 @@ public class ExceptionsTranslationTest {

			String mess = messageSource.getMessage(code, fields, new Locale("ru", "RU"));

			Assert.assertEquals(getMessage(code, fields, resourcePathSpanish), mess);
			Assert.assertEquals(code, mess);
		}
	}