axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rsi...@apache.org
Subject cvs commit: xml-axis/java/test/utils TestMessages.java
Date Fri, 22 Feb 2002 15:21:18 GMT
rsitze      02/02/22 07:21:18

  Modified:    java/test/utils TestMessages.java
  Log:
  Replaced '\n' with attribute initialized from system property.
  
  Revision  Changes    Path
  1.6       +6 -3      xml-axis/java/test/utils/TestMessages.java
  
  Index: TestMessages.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/test/utils/TestMessages.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- TestMessages.java	19 Feb 2002 17:38:23 -0000	1.5
  +++ TestMessages.java	22 Feb 2002 15:21:18 -0000	1.6
  @@ -103,6 +103,9 @@
           }
       } // testTestMessages
   
  +
  +    private final String LS = System.getProperty("line.separator");
  +
       private String errors = "";
   
       /**
  @@ -174,7 +177,7 @@
                           value = JavaUtils.getMessage(key);
                       }
                       catch (Throwable t) {
  -                        errors = errors + "File:  " + file.getPath() + " " + t.getMessage()
+ '\n';
  +                        errors = errors + "File:  " + file.getPath() + " " + t.getMessage()
+ LS;
                       }
                       // The realParms count is the number of strings in the message of the
form:
                       // {X} where X is 0..9
  @@ -184,14 +187,14 @@
                       // first argument.
                       int expectedParms = msgArgs.length - 1;
                       if (realParms != expectedParms) {
  -                        errors = errors + "File:  " + file.getPath() + " " + key + " has
" + realParms + " parameters, " + expectedParms + " expected.\n";
  +                        errors = errors + "File:  " + file.getPath() + " " + key + " has
" + realParms + " parameters, " + expectedParms + " expected." + LS;
                       }
                   }
                   index = string.indexOf("JavaUtils.getMessage(");
               }
           }
           catch (Throwable t) {
  -            errors = errors + "File:  " + file.getPath() + " " + t.getMessage() + '\n';
  +            errors = errors + "File:  " + file.getPath() + " " + t.getMessage() + LS;
           }
       } // checkMessages
   
  
  
  

Mime
View raw message