Skip to content

Commit

Permalink
[core][test] Update ressource bundle tests
Browse files Browse the repository at this point in the history
  • Loading branch information
skerdudou committed May 22, 2024
1 parent 3fb8e37 commit d0165de
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ public void testOverride() {

final LocaleMessageText helloTxt = LocaleMessageText.of(CityGuide.HELLO);
assertEquals("salut", helloTxt.getDisplay());

assertEquals("yah2", localeManager.getMessage(CityGuide.HELLO, Locale.ENGLISH));
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
#

#Expressions
HELLO = yah
GOOD_BYE = bye
CITY = town
HELLO = hello
GOOD_BYE = good bye
CITY = city
Original file line number Diff line number Diff line change
@@ -1,23 +1 @@
#
# vertigo - simple java starter
#
# Copyright (C) 2013, KleeGroup, direction.technique@kleegroup.com (http://www.kleegroup.com)
# KleeGroup, Centre d'affaire la Boursidiere - BP 159 - 92357 Le Plessis Robinson Cedex - France
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

#Expressions en anglais
HELLO = hello
GOOD_BYE = good bye
CITY = city
# Inherit from city-guide.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# limitations under the License.
#

#Expressions en français
#Expressions en français
HELLO = bonjour
GOOD_BYE = au revoir
CITY = ville
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
#

#Expressions
HELLO = yah
HELLO = yah2
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Inherit from popular-guide.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
# limitations under the License.
#

#Expressions en français
#Expressions en français
HELLO = salut

0 comments on commit d0165de

Please sign in to comment.