aboutsummaryrefslogtreecommitdiffstats
path: root/container-core/src/test/java/com/yahoo/container/logging/test/LogFormatterTestCase.java
diff options
context:
space:
mode:
Diffstat (limited to 'container-core/src/test/java/com/yahoo/container/logging/test/LogFormatterTestCase.java')
-rw-r--r--container-core/src/test/java/com/yahoo/container/logging/test/LogFormatterTestCase.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/container-core/src/test/java/com/yahoo/container/logging/test/LogFormatterTestCase.java b/container-core/src/test/java/com/yahoo/container/logging/test/LogFormatterTestCase.java
index 382f17f072f..c3526b42f55 100644
--- a/container-core/src/test/java/com/yahoo/container/logging/test/LogFormatterTestCase.java
+++ b/container-core/src/test/java/com/yahoo/container/logging/test/LogFormatterTestCase.java
@@ -2,11 +2,11 @@
package com.yahoo.container.logging.test;
import com.yahoo.container.logging.LogFormatter;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import java.util.Date;
-import static org.junit.Assert.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* @author Bob Travis
@@ -14,14 +14,14 @@ import static org.junit.Assert.assertEquals;
public class LogFormatterTestCase {
@Test
- public void testIt() {
+ void testIt() {
java.util.TimeZone.setDefault(java.util.TimeZone.getTimeZone("UTC"));
@SuppressWarnings("deprecation")
- long time = new Date(103,7,25,13,30,35).getTime();
- String result = LogFormatter.insertDate("test%Y%m%d%H%M%S%x",time);
- assertEquals("test20030825133035Aug",result);
- result = LogFormatter.insertDate("test%s%T",time);
- assertEquals("test000"+time, result);
+ long time = new Date(103, 7, 25, 13, 30, 35).getTime();
+ String result = LogFormatter.insertDate("test%Y%m%d%H%M%S%x", time);
+ assertEquals("test20030825133035Aug", result);
+ result = LogFormatter.insertDate("test%s%T", time);
+ assertEquals("test000" + time, result);
}
}