aboutsummaryrefslogtreecommitdiffstats
path: root/src/testcases/org/apache/poi/util/TestLocaleUtil.java
diff options
context:
space:
mode:
authorAndreas Beeker <kiwiwings@apache.org>2021-01-09 18:24:51 +0000
committerAndreas Beeker <kiwiwings@apache.org>2021-01-09 18:24:51 +0000
commita4ed4359cce220abe549f870df84b0cd4895b881 (patch)
treee2d349b2aba0486b74f23ec7b02e60a40be418e6 /src/testcases/org/apache/poi/util/TestLocaleUtil.java
parent1d676a098d667f7132f7d62cd76f3f33fb1b17fe (diff)
downloadpoi-a4ed4359cce220abe549f870df84b0cd4895b881.tar.gz
poi-a4ed4359cce220abe549f870df84b0cd4895b881.zip
Sonar fixes
JUnit5 test classes and methods should have default package visibility git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1885308 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org/apache/poi/util/TestLocaleUtil.java')
-rw-r--r--src/testcases/org/apache/poi/util/TestLocaleUtil.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/testcases/org/apache/poi/util/TestLocaleUtil.java b/src/testcases/org/apache/poi/util/TestLocaleUtil.java
index 0b6b8d6642..63ae1d92aa 100644
--- a/src/testcases/org/apache/poi/util/TestLocaleUtil.java
+++ b/src/testcases/org/apache/poi/util/TestLocaleUtil.java
@@ -43,7 +43,7 @@ public class TestLocaleUtil {
*/
@BeforeEach
@SuppressForbidden("implementation around default locales in POI")
- public void setUp() {
+ void setUp() {
// reset the user locale and time zone so that tests do not interfere with each other
// the other and better way would be to run each test in its own thread since
// LocaleUtil uses per-thread settings.
@@ -61,14 +61,14 @@ public class TestLocaleUtil {
* other tests.
*/
@AfterEach
- public void tearDown() {
+ void tearDown() {
LocaleUtil.resetUserLocale();
LocaleUtil.resetUserTimeZone();
}
@Test
@SuppressForbidden("implementation around default locales in POI")
- public void userLocale() {
+ void userLocale() {
Locale DEFAULT_LOCALE = LocaleUtil.getUserLocale();
assertEquals(DEFAULT_LOCALE, LocaleUtil.getUserLocale());
@@ -83,7 +83,7 @@ public class TestLocaleUtil {
@Test
@SuppressForbidden("implementation around default locales in POI")
- public void userTimeZone() {
+ void userTimeZone() {
TimeZone DEFAULT_TIME_ZONE = LocaleUtil.getUserTimeZone();
assertEquals(DEFAULT_TIME_ZONE, LocaleUtil.getUserTimeZone());
@@ -95,7 +95,7 @@ public class TestLocaleUtil {
@Test
@SuppressForbidden("implementation around default locales in POI")
- public void localeCalendar() {
+ void localeCalendar() {
Locale DEFAULT_LOCALE = LocaleUtil.getUserLocale();
TimeZone DEFAULT_TIME_ZONE = LocaleUtil.getUserTimeZone();
Calendar DEFAULT_CALENDAR = LocaleUtil.getLocaleCalendar();