Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/test/java/org/codehaus/plexus/i18n/DefaultI18NTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
* @author <a href="mailto:jason@zenplex.com">Jason van Zyl</a>
*/
@PlexusTest
public class DefaultI18NTest {
class DefaultI18NTest {
@Inject
private I18N i18n;

Expand All @@ -84,7 +84,7 @@ protected void setUp() {
}

@Test
public void testLocalization() {
void localization() {
String s0 = i18n.getString(null, null, "key1");
assertEquals("[] value1", s0, "Unable to retrieve localized text for locale: default");

Expand Down Expand Up @@ -121,7 +121,7 @@ public void testLocalization() {
}

@Test
public void testLocalizedMessagesWithFormatting() {
void localizedMessagesWithFormatting() {
// Format methods

String s6 = i18n.format("org.codehaus.plexus.i18n.i18n", null, "thanks.message", "jason");
Expand All @@ -137,13 +137,13 @@ public void testLocalizedMessagesWithFormatting() {
}

@Test
public void testLocalizedMessagesWithNonStandardLocale() {
void localizedMessagesWithNonStandardLocale() {
String s0 = i18n.getString("name", new Locale("xx"));
assertEquals("plexus", s0);
}

@Test
public void testNoFallbackToDefaultLocale() {
void noFallbackToDefaultLocale() {
// Save the current default locale
Locale oldDefault = Locale.getDefault();

Expand Down
4 changes: 2 additions & 2 deletions src/test/java/org/codehaus/plexus/i18n/I18NTokenizerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@
* @author <a href="mailto:jason@zenplex.com">Jason van Zyl</a>
* @version $Id: I18NTokenizerTest.java 831 2004-06-16 17:01:12Z jvanzyl $
*/
public class I18NTokenizerTest {
class I18NTokenizerTest {
@Test
public void testLocaleTokenizer() {
void localeTokenizer() {
I18NTokenizer tok = new I18NTokenizer("en, es;q=0.8, zh-TW;q=0.1");
Locale locale = tok.next();
assertEquals("en", locale.getLanguage(), "Either wrong language or order parsing: " + locale);
Expand Down