Author: kmalhi
Date: Fri Jul 16 02:13:39 2010
New Revision: 964657

URL: http://svn.apache.org/viewvc?rev=964657&view=rev
Log:
Update to formatting. Now tables show line numbers. For tested keys, earlier if 
a key was tested by more than one method, each method was listed in a separate 
row, now its listed in the same cell in the same row, but in a new line. 
Finally, the untested keys were earlier shown in a four column table, but some 
bug was preventing it to show all the untested keys, reverted back to one 
column table where rows are numbered. Looks better actually.

Modified:
    
openejb/trunk/openejb3/container/openejb-core/src/test/java/org/apache/openejb/config/rules/ValidationKeysAuditorTest.java

Modified: 
openejb/trunk/openejb3/container/openejb-core/src/test/java/org/apache/openejb/config/rules/ValidationKeysAuditorTest.java
URL: 
http://svn.apache.org/viewvc/openejb/trunk/openejb3/container/openejb-core/src/test/java/org/apache/openejb/config/rules/ValidationKeysAuditorTest.java?rev=964657&r1=964656&r2=964657&view=diff
==============================================================================
--- 
openejb/trunk/openejb3/container/openejb-core/src/test/java/org/apache/openejb/config/rules/ValidationKeysAuditorTest.java
 (original)
+++ 
openejb/trunk/openejb3/container/openejb-core/src/test/java/org/apache/openejb/config/rules/ValidationKeysAuditorTest.java
 Fri Jul 16 02:13:39 2010
@@ -122,7 +122,7 @@ public class ValidationKeysAuditorTest {
     private void prepareConfluenceTestedKeysDetailedReport(HashSet<ClassInfo> 
classInfos, StringBuilder output, String newLine) {
         TreeMap<String, TreeSet<String>> info = new TreeMap<String, 
TreeSet<String>>();
         output.append("h2.List of keys which have been 
tested.").append(newLine);
-        // output.append("{csv}").append(newLine);
+        output.append("{table-plus:autoNumber=true}").append(newLine);
         output.append("|| Key | Method which tests the key 
||").append(newLine);
         for (ClassInfo classInfo : classInfos) {
             HashSet<MethodInfo> methuds = classInfo.methuds;
@@ -148,12 +148,14 @@ public class ValidationKeysAuditorTest {
             TreeSet<String> values = entry.getValue();
             for (String value : values) {
                 if (count > 0) {
-                    output.append(" | | ");
+                    output.append(" \\\\ ");
                 }
-                output.append(value).append(" | ").append(newLine);
+                output.append(value);
                 ++count;
             }
+            output.append(newLine);
         }
+        output.append("{table-plus}").append(newLine);
     }
 
     private String createConfluenceLink(String string) {
@@ -165,21 +167,12 @@ public class ValidationKeysAuditorTest {
     }
 
     private void prepareConfluenceUntestedKeyList(Set<String> untestedKeys, 
StringBuilder output, String newLine) {
+        output.append("{table-plus:autoNumber=true}").append(newLine);
         output.append("|| h2.List of untested keys \\\\ ||").append(newLine);
-        int count = 0;
         for (String key : untestedKeys) {
-            if (count == 0) {
-                output.append("| ");
-            }
-            if (count >= 0 && count < 4) {
-                output.append(key).append(" | ");
-                ++count;
-                continue;
-            }
-            output.append(newLine);
-            count = 0;
+            output.append(" | ").append(key).append(" | ").append(newLine);
         }
-        output.append(newLine);
+        output.append("{table-plus}").append(newLine);
     }
 
     private void prepareConfluenceSummary(Set<String> untestedKeys, 
StringBuilder output, String newLine) {


Reply via email to