diff options
-rw-r--r-- | jdisc_core/src/test/java/com/yahoo/jdisc/core/OsgiLogHandlerTestCase.java | 4 | ||||
-rw-r--r-- | vespalog/src/test/java/com/yahoo/log/VespaFormatterTestCase.java | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/jdisc_core/src/test/java/com/yahoo/jdisc/core/OsgiLogHandlerTestCase.java b/jdisc_core/src/test/java/com/yahoo/jdisc/core/OsgiLogHandlerTestCase.java index 6ae377a91a4..7c07623814e 100644 --- a/jdisc_core/src/test/java/com/yahoo/jdisc/core/OsgiLogHandlerTestCase.java +++ b/jdisc_core/src/test/java/com/yahoo/jdisc/core/OsgiLogHandlerTestCase.java @@ -86,7 +86,7 @@ public class OsgiLogHandlerTestCase { record.setSequenceNumber(69); record.setSourceClassName("sourceClassName"); record.setSourceMethodName("sourceMethodName"); - record.setThreadID(69); + record.setLongThreadID(69L); Throwable thrown = new Throwable(); record.setThrown(thrown); log.log(record); @@ -116,7 +116,7 @@ public class OsgiLogHandlerTestCase { assertEquals(69L, ref.getProperty("SEQUENCE_NUMBER")); assertEquals("sourceClassName", ref.getProperty("SOURCE_CLASS_NAME")); assertEquals("sourceMethodName", ref.getProperty("SOURCE_METHOD_NAME")); - assertEquals(69, ref.getProperty("THREAD_ID")); + assertEquals(69L, ref.getProperty("THREAD_ID")); assertSame(thrown, ref.getProperty("THROWN")); assertNull(ref.getProperty("unknown")); } diff --git a/vespalog/src/test/java/com/yahoo/log/VespaFormatterTestCase.java b/vespalog/src/test/java/com/yahoo/log/VespaFormatterTestCase.java index 95a06ab2535..859e644c419 100644 --- a/vespalog/src/test/java/com/yahoo/log/VespaFormatterTestCase.java +++ b/vespalog/src/test/java/com/yahoo/log/VespaFormatterTestCase.java @@ -41,7 +41,7 @@ public class VespaFormatterTestCase { testRecord1 = new LogRecord(Level.INFO, "this is a test"); testRecord1.setInstant(Instant.ofEpochMilli(1098709021843L)); - testRecord1.setThreadID(123); + testRecord1.setLongThreadID(123L); expected1 = "1098709021.843000\t" + hostname + "\t" @@ -64,7 +64,7 @@ public class VespaFormatterTestCase { testRecord2 = new LogRecord(Level.INFO, "this is a test"); testRecord2.setInstant(Instant.ofEpochMilli(1098709021843L)); - testRecord2.setThreadID(123); + testRecord2.setLongThreadID(123L); testRecord2.setLoggerName("org.foo"); expected3 = "1098709021.843000\t" @@ -110,7 +110,7 @@ public class VespaFormatterTestCase { LogRecord testRecord = new LogRecord(Level.INFO, "this {1} is {0} test"); testRecord.setInstant(Instant.ofEpochMilli(1098709021843L)); - testRecord.setThreadID(123); + testRecord.setLongThreadID(123L); testRecord.setLoggerName("org.foo"); Object[] params = { "a small", "message" }; testRecord.setParameters(params); |