You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by gg...@apache.org on 2014/03/28 07:46:00 UTC
svn commit: r1582626 -
/logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/impl/Log4jLogEventTest.java
Author: ggregory
Date: Fri Mar 28 06:45:59 2014
New Revision: 1582626
URL: http://svn.apache.org/r1582626
Log:
Sort members.
Modified:
logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/impl/Log4jLogEventTest.java
Modified: logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/impl/Log4jLogEventTest.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/impl/Log4jLogEventTest.java?rev=1582626&r1=1582625&r2=1582626&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/impl/Log4jLogEventTest.java (original)
+++ logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/impl/Log4jLogEventTest.java Fri Mar 28 06:45:59 2014
@@ -31,16 +31,6 @@ import org.junit.Test;
public class Log4jLogEventTest {
@Test
- public void testNullLevelReplacedWithOFF() throws Exception {
- final Marker marker = null;
- final Throwable t = null;
- final Level NULL_LEVEL = null;
- final Log4jLogEvent evt = new Log4jLogEvent("some.test", marker, "",
- NULL_LEVEL, new SimpleMessage("abc"), t);
- assertEquals(Level.OFF, evt.getLevel());
- }
-
- @Test
public void testJavaIoSerializable() throws Exception {
final Log4jLogEvent evt = new Log4jLogEvent("some.test", null, "",
Level.INFO, new SimpleMessage("abc"), null);
@@ -68,4 +58,14 @@ public class Log4jLogEventTest {
assertEquals(evt.isIncludeLocation(), evt2.isIncludeLocation());
}
+ @Test
+ public void testNullLevelReplacedWithOFF() throws Exception {
+ final Marker marker = null;
+ final Throwable t = null;
+ final Level NULL_LEVEL = null;
+ final Log4jLogEvent evt = new Log4jLogEvent("some.test", marker, "",
+ NULL_LEVEL, new SimpleMessage("abc"), t);
+ assertEquals(Level.OFF, evt.getLevel());
+ }
+
}