logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1560589 - /logging/log4j/log4j2/trunk/log4j-taglib/src/test/java/org/apache/logging/log4j/taglib/TagUtilsTest.java
Date Thu, 23 Jan 2014 05:56:57 GMT
Author: ggregory
Date: Thu Jan 23 05:56:57 2014
New Revision: 1560589

URL: http://svn.apache.org/r1560589
Log:
Sort methods.

Modified:
    logging/log4j/log4j2/trunk/log4j-taglib/src/test/java/org/apache/logging/log4j/taglib/TagUtilsTest.java

Modified: logging/log4j/log4j2/trunk/log4j-taglib/src/test/java/org/apache/logging/log4j/taglib/TagUtilsTest.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-taglib/src/test/java/org/apache/logging/log4j/taglib/TagUtilsTest.java?rev=1560589&r1=1560588&r2=1560589&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-taglib/src/test/java/org/apache/logging/log4j/taglib/TagUtilsTest.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-taglib/src/test/java/org/apache/logging/log4j/taglib/TagUtilsTest.java
Thu Jan 23 05:56:57 2014
@@ -28,16 +28,6 @@ import static org.junit.Assert.assertEqu
  */
 public class TagUtilsTest {
     @Test
-    public void testGetScopeSession() {
-        assertEquals("The scope is not correct.", PageContext.SESSION_SCOPE, TagUtils.getScope("session"));
-    }
-
-    @Test
-    public void testGetScopeRequest() {
-        assertEquals("The scope is not correct.", PageContext.REQUEST_SCOPE, TagUtils.getScope("request"));
-    }
-
-    @Test
     public void testGetScopeApplication() {
         assertEquals("The scope is not correct.", PageContext.APPLICATION_SCOPE, TagUtils.getScope("application"));
     }
@@ -48,18 +38,18 @@ public class TagUtilsTest {
     }
 
     @Test
-    public void testGetScopeUnknown() {
-        assertEquals("The scope is not correct.", PageContext.PAGE_SCOPE, TagUtils.getScope("oeu1209"));
+    public void testGetScopeRequest() {
+        assertEquals("The scope is not correct.", PageContext.REQUEST_SCOPE, TagUtils.getScope("request"));
     }
 
     @Test
-    public void testResolveLevelTrace01() {
-        assertEquals("The value is not correct.", Level.TRACE, TagUtils.resolveLevel("trace"));
+    public void testGetScopeSession() {
+        assertEquals("The scope is not correct.", PageContext.SESSION_SCOPE, TagUtils.getScope("session"));
     }
 
     @Test
-    public void testResolveLevelTrace02() {
-        assertEquals("The value is not correct.", Level.TRACE, TagUtils.resolveLevel(Level.TRACE));
+    public void testGetScopeUnknown() {
+        assertEquals("The scope is not correct.", PageContext.PAGE_SCOPE, TagUtils.getScope("oeu1209"));
     }
 
     @Test
@@ -73,42 +63,52 @@ public class TagUtilsTest {
     }
 
     @Test
-    public void testResolveLevelInfo01() {
-        assertEquals("The value is not correct.", Level.INFO, TagUtils.resolveLevel("info"));
+    public void testResolveLevelError01() {
+        assertEquals("The value is not correct.", Level.ERROR, TagUtils.resolveLevel("error"));
     }
 
     @Test
-    public void testResolveLevelInfo02() {
-        assertEquals("The value is not correct.", Level.INFO, TagUtils.resolveLevel(Level.INFO));
+    public void testResolveLevelError02() {
+        assertEquals("The value is not correct.", Level.ERROR, TagUtils.resolveLevel(Level.ERROR));
     }
 
     @Test
-    public void testResolveLevelWarn01() {
-        assertEquals("The value is not correct.", Level.WARN, TagUtils.resolveLevel("warn"));
+    public void testResolveLevelFatal01() {
+        assertEquals("The value is not correct.", Level.FATAL, TagUtils.resolveLevel("fatal"));
     }
 
     @Test
-    public void testResolveLevelWarn02() {
-        assertEquals("The value is not correct.", Level.WARN, TagUtils.resolveLevel(Level.WARN));
+    public void testResolveLevelFatal02() {
+        assertEquals("The value is not correct.", Level.FATAL, TagUtils.resolveLevel(Level.FATAL));
     }
 
     @Test
-    public void testResolveLevelError01() {
-        assertEquals("The value is not correct.", Level.ERROR, TagUtils.resolveLevel("error"));
+    public void testResolveLevelInfo01() {
+        assertEquals("The value is not correct.", Level.INFO, TagUtils.resolveLevel("info"));
     }
 
     @Test
-    public void testResolveLevelError02() {
-        assertEquals("The value is not correct.", Level.ERROR, TagUtils.resolveLevel(Level.ERROR));
+    public void testResolveLevelInfo02() {
+        assertEquals("The value is not correct.", Level.INFO, TagUtils.resolveLevel(Level.INFO));
     }
 
     @Test
-    public void testResolveLevelFatal01() {
-        assertEquals("The value is not correct.", Level.FATAL, TagUtils.resolveLevel("fatal"));
+    public void testResolveLevelTrace01() {
+        assertEquals("The value is not correct.", Level.TRACE, TagUtils.resolveLevel("trace"));
     }
 
     @Test
-    public void testResolveLevelFatal02() {
-        assertEquals("The value is not correct.", Level.FATAL, TagUtils.resolveLevel(Level.FATAL));
+    public void testResolveLevelTrace02() {
+        assertEquals("The value is not correct.", Level.TRACE, TagUtils.resolveLevel(Level.TRACE));
+    }
+
+    @Test
+    public void testResolveLevelWarn01() {
+        assertEquals("The value is not correct.", Level.WARN, TagUtils.resolveLevel("warn"));
+    }
+
+    @Test
+    public void testResolveLevelWarn02() {
+        assertEquals("The value is not correct.", Level.WARN, TagUtils.resolveLevel(Level.WARN));
     }
 }



Mime
View raw message