db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject svn commit: r219263 - /incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/util/BatchResultPrinter.java
Date Fri, 15 Jul 2005 23:48:03 GMT
Author: clr
Date: Fri Jul 15 16:48:02 2005
New Revision: 219263

URL: http://svn.apache.org/viewcvs?rev=219263&view=rev
Log:
fixed typo summery

Modified:
    incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/util/BatchResultPrinter.java

Modified: incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/util/BatchResultPrinter.java
URL: http://svn.apache.org/viewcvs/incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/util/BatchResultPrinter.java?rev=219263&r1=219262&r2=219263&view=diff
==============================================================================
--- incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/util/BatchResultPrinter.java (original)
+++ incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/util/BatchResultPrinter.java Fri
Jul 15 16:48:02 2005
@@ -89,7 +89,7 @@
                 
         } else {
             getWriter().println("FAILURES!!!");
-            printErrorSummery(result);
+            printErrorSummary(result);
             getWriter().println("Tests run: "+result.runCount()+ 
                                 ",  Failures: "+result.failureCount()+
                                 ",  Errors: "+result.errorCount()+
@@ -112,28 +112,28 @@
         return className;
     }
         
-    private void printErrorSummery(TestResult result) {
-        Object[] array = getSortedArrayOfErrorSummeryEntries(result);
+    private void printErrorSummary(TestResult result) {
+        Object[] array = getSortedArrayOfErrorSummaryEntries(result);
         if (array.length>0) {
-            getWriter().println("Error summery:");
+            getWriter().println("Error summary:");
             for (int i=0; i<array.length; i++) {
                 getWriter().println(array[i]);
             }
         }
     }
     
-    private static Object[] getSortedArrayOfErrorSummeryEntries(TestResult result) {
+    private static Object[] getSortedArrayOfErrorSummaryEntries(TestResult result) {
         Map map = new HashMap();
         for (Enumeration e=result.errors(); e.hasMoreElements(); ) {
             TestFailure testFailure = (TestFailure) e.nextElement();
             Throwable t = testFailure.thrownException();
             String message = getRootCause(t).toString();
-            ErrorSummeryEntry errorSummeryEntry = (ErrorSummeryEntry) map.get(message);
-            if (errorSummeryEntry==null ) {
-                errorSummeryEntry = new ErrorSummeryEntry(t);
-                map.put(message, errorSummeryEntry);
+            ErrorSummaryEntry errorSummaryEntry = (ErrorSummaryEntry) map.get(message);
+            if (errorSummaryEntry==null ) {
+                errorSummaryEntry = new ErrorSummaryEntry(t);
+                map.put(message, errorSummaryEntry);
             }
-            errorSummeryEntry.count++;   
+            errorSummaryEntry.count++;   
         }
         
         Object[] array = map.values().toArray();
@@ -148,12 +148,12 @@
         return t;
     }
     
-    private static class ErrorSummeryEntry implements Comparable {
+    private static class ErrorSummaryEntry implements Comparable {
         private static DecimalFormat decimalFormat = new DecimalFormat("000");
         private int count = 0;
         private Throwable t;
         
-        private ErrorSummeryEntry(Throwable t) {
+        private ErrorSummaryEntry(Throwable t) {
             this.t = t;
         }
         
@@ -166,11 +166,11 @@
         }
         
         public int compareTo(Object o) {
-            int result = this.count - ((ErrorSummeryEntry)o).count;
+            int result = this.count - ((ErrorSummaryEntry)o).count;
             if (result==0) {
                 String message1 = getRootCause().toString();
                 String message2 = 
-                    ((ErrorSummeryEntry)o).getRootCause().toString();
+                    ((ErrorSummaryEntry)o).getRootCause().toString();
                 result = message1.compareTo(message2);
             }
             return result;



Mime
View raw message