Skip to content

Commit b9ee725

Browse files
JUnit Jupiter best practices (#32)
Co-authored-by: Moderne <[email protected]>
1 parent a6e068b commit b9ee725

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/test/java/org/codehaus/plexus/i18n/DefaultI18NTest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
* @author <a href="mailto:[email protected]">Jason van Zyl</a>
7474
*/
7575
@PlexusTest
76-
public class DefaultI18NTest {
76+
class DefaultI18NTest {
7777
@Inject
7878
private I18N i18n;
7979

@@ -84,7 +84,7 @@ protected void setUp() {
8484
}
8585

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

@@ -121,7 +121,7 @@ public void testLocalization() {
121121
}
122122

123123
@Test
124-
public void testLocalizedMessagesWithFormatting() {
124+
void localizedMessagesWithFormatting() {
125125
// Format methods
126126

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

139139
@Test
140-
public void testLocalizedMessagesWithNonStandardLocale() {
140+
void localizedMessagesWithNonStandardLocale() {
141141
String s0 = i18n.getString("name", new Locale("xx"));
142142
assertEquals("plexus", s0);
143143
}
144144

145145
@Test
146-
public void testNoFallbackToDefaultLocale() {
146+
void noFallbackToDefaultLocale() {
147147
// Save the current default locale
148148
Locale oldDefault = Locale.getDefault();
149149

src/test/java/org/codehaus/plexus/i18n/I18NTokenizerTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@
6767
* @author <a href="mailto:[email protected]">Jason van Zyl</a>
6868
* @version $Id: I18NTokenizerTest.java 831 2004-06-16 17:01:12Z jvanzyl $
6969
*/
70-
public class I18NTokenizerTest {
70+
class I18NTokenizerTest {
7171
@Test
72-
public void testLocaleTokenizer() {
72+
void localeTokenizer() {
7373
I18NTokenizer tok = new I18NTokenizer("en, es;q=0.8, zh-TW;q=0.1");
7474
Locale locale = tok.next();
7575
assertEquals("en", locale.getLanguage(), "Either wrong language or order parsing: " + locale);

0 commit comments

Comments
 (0)