Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
Signed-off-by: Sheng Chen <[email protected]>
  • Loading branch information
jdneo committed Jul 19, 2023
1 parent 1f85a1b commit cf5216a
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,20 @@

import static org.junit.jupiter.api.Assertions.assertNotNull;

import java.util.Locale;

import org.junit.jupiter.api.Test;

class MessageUtilsTest {
@Test
void testGet() {
assertNotNull(MessageUtils.get("error.serverStorageMissing"));
}

@Test
void testSetLocale() {
MessageUtils.setLocale(new Locale("zh", "CN"));
assertNotNull(MessageUtils.get("error.serverStorageMissing"));
}

}

0 comments on commit cf5216a

Please sign in to comment.