cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anto...@apache.org
Subject svn commit: r165516 - /cocoon/branches/BRANCH_2_1_X/src/test/org/apache/cocoon/util/test/MIMEUtilsTestCase.java
Date Sun, 01 May 2005 15:36:39 GMT
Author: antonio
Date: Sun May  1 08:36:38 2005
New Revision: 165516

URL: http://svn.apache.org/viewcvs?rev=165516&view=rev
Log:
Use global NL

Modified:
    cocoon/branches/BRANCH_2_1_X/src/test/org/apache/cocoon/util/test/MIMEUtilsTestCase.java

Modified: cocoon/branches/BRANCH_2_1_X/src/test/org/apache/cocoon/util/test/MIMEUtilsTestCase.java
URL: http://svn.apache.org/viewcvs/cocoon/branches/BRANCH_2_1_X/src/test/org/apache/cocoon/util/test/MIMEUtilsTestCase.java?rev=165516&r1=165515&r2=165516&view=diff
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/test/org/apache/cocoon/util/test/MIMEUtilsTestCase.java
(original)
+++ cocoon/branches/BRANCH_2_1_X/src/test/org/apache/cocoon/util/test/MIMEUtilsTestCase.java
Sun May  1 08:36:38 2005
@@ -72,13 +72,13 @@
     }
 
     public void testTypicalUsage() throws Exception {
-        String mime_types="# MIME type mappings"+NL+
-            "text/plain  txt text "+NL+
-            "text/html   html htm"+NL+
-            "   "+NL+
-            "text/xml    xml"+NL+
-            "text/css    css"+NL+
-            "text/javascript		js "+NL+
+        String mime_types="# MIME type mappings"+ NL +
+            "text/plain  txt text "+ NL +
+            "text/html   html htm"+ NL +
+            "   "+ NL +
+            "text/xml    xml"+ NL +
+            "text/css    css"+ NL +
+            "text/javascript		js "+ NL +
             "application/x-javascript	js";
 
         MIMEUtils.loadMimeTypes(new StringReader(mime_types), extMap, mimeMap);
@@ -109,9 +109,8 @@
     }
 
     public void tstCommentsAndWhitespace() throws Exception {
-        String NL = System.getProperty("line.separator");
         String mime_types="## A commented line"+NL+
-            "   "+NL+
+            "   "+ NL +
             "# Another comment";
         MIMEUtils.loadMimeTypes(new StringReader(mime_types), extMap, mimeMap);
         assertEquals(M2E, 0, extMap.size());
@@ -119,10 +118,9 @@
     }
 
     public void tstMimeTypeWithoutExtension() throws Exception {
-        String NL = System.getProperty("line.separator");
         String mime_types=
-            "text/plain  txt text"+NL+
-            "application/octet-stream"+NL+NL;
+            "text/plain  txt text"+ NL +
+            "application/octet-stream"+ NL + NL;
         MIMEUtils.loadMimeTypes(new StringReader(mime_types), extMap, mimeMap);
         assertEquals(".txt", extMap.get("text/plain"));
         assertEquals("text/plain", mimeMap.get(".txt"));
@@ -130,5 +128,4 @@
         assertEquals(M2E, 1, extMap.size());
         assertEquals(E2M, 2, mimeMap.size());
     }
-
 }



Mime
View raw message