logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mattsic...@apache.org
Subject svn commit: r1582192 - /logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/pattern/NameAbbreviatorTest.java
Date Thu, 27 Mar 2014 05:27:19 GMT
Author: mattsicker
Date: Thu Mar 27 05:27:18 2014
New Revision: 1582192

URL: http://svn.apache.org/r1582192
Log:
Add one more test.

Modified:
    logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/pattern/NameAbbreviatorTest.java

Modified: logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/pattern/NameAbbreviatorTest.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/pattern/NameAbbreviatorTest.java?rev=1582192&r1=1582191&r2=1582192&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/pattern/NameAbbreviatorTest.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/pattern/NameAbbreviatorTest.java
Thu Mar 27 05:27:18 2014
@@ -51,6 +51,14 @@ public class NameAbbreviatorTest {
     }
 
     @Test
+    public void testThree() throws Exception {
+        final String str = this.getClass().getName();
+        final NameAbbreviator a = NameAbbreviator.getAbbreviator("3");
+        final String result = a.abbreviate(str);
+        assertEquals("core.pattern.NameAbbreviatorTest", result);
+    }
+
+    @Test
     public void testShortName() {
         final String str = this.getClass().getName();
         final NameAbbreviator a = NameAbbreviator.getAbbreviator("1.");



Mime
View raw message