geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r504800 - in /geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/model: ClassModel.groovy IterationModel.groovy PackageModel.groovy SuiteModel.groovy
Date Thu, 08 Feb 2007 06:10:13 GMT
Author: jdillon
Date: Wed Feb  7 22:10:12 2007
New Revision: 504800

URL: http://svn.apache.org/viewvc?view=rev&rev=504800
Log:
Add helpers to get model keys sorted

Modified:
    geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/model/ClassModel.groovy
    geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/model/IterationModel.groovy
    geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/model/PackageModel.groovy
    geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/model/SuiteModel.groovy

Modified: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/model/ClassModel.groovy
URL: http://svn.apache.org/viewvc/geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/model/ClassModel.groovy?view=diff&rev=504800&r1=504799&r2=504800
==============================================================================
--- geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/model/ClassModel.groovy
(original)
+++ geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/model/ClassModel.groovy
Wed Feb  7 22:10:12 2007
@@ -23,6 +23,8 @@
 
 package gbuild.config.projects.Geronimo_CTS.report.model
 
+import gbuild.system.util.Sorting
+
 /**
  * Container for the statistical data for the tests within a single class.
  *
@@ -34,6 +36,10 @@
 {
     def ClassModel() {
         super('testName', TestCaseModel)
+    }
+    
+    List getTestNames() {
+        return children.keySet().sort(Sorting.CASE_INSENSITIVE)
     }
 }
 

Modified: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/model/IterationModel.groovy
URL: http://svn.apache.org/viewvc/geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/model/IterationModel.groovy?view=diff&rev=504800&r1=504799&r2=504800
==============================================================================
--- geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/model/IterationModel.groovy
(original)
+++ geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/model/IterationModel.groovy
Wed Feb  7 22:10:12 2007
@@ -23,6 +23,8 @@
 
 package gbuild.config.projects.Geronimo_CTS.report.model
 
+import gbuild.system.util.Sorting
+
 /**
  * Container for the statistical data for a iteration (large group of tests).
  *
@@ -36,6 +38,10 @@
 {
     def IterationModel() {
         super('packageName', PackageModel)
+    }
+    
+    List getPackageNames() {
+        return children.keySet().sort(Sorting.CASE_INSENSITIVE)
     }
 }
 

Modified: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/model/PackageModel.groovy
URL: http://svn.apache.org/viewvc/geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/model/PackageModel.groovy?view=diff&rev=504800&r1=504799&r2=504800
==============================================================================
--- geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/model/PackageModel.groovy
(original)
+++ geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/model/PackageModel.groovy
Wed Feb  7 22:10:12 2007
@@ -23,6 +23,8 @@
 
 package gbuild.config.projects.Geronimo_CTS.report.model
 
+import gbuild.system.util.Sorting
+
 /**
  * Container for the statistical data for a package (smaller group of tests).
  *
@@ -35,6 +37,10 @@
 {
     def PackageModel() {
         super('className', ClassModel)
+    }
+    
+    List getClassNames() {
+        return children.keySet().sort(Sorting.CASE_INSENSITIVE)
     }
 }
 

Modified: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/model/SuiteModel.groovy
URL: http://svn.apache.org/viewvc/geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/model/SuiteModel.groovy?view=diff&rev=504800&r1=504799&r2=504800
==============================================================================
--- geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/model/SuiteModel.groovy
(original)
+++ geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/model/SuiteModel.groovy
Wed Feb  7 22:10:12 2007
@@ -25,6 +25,8 @@
 
 import gbuild.config.projects.Geronimo_CTS.report.TestCase
 
+import gbuild.system.util.Sorting
+
 /**
  * Container for the statistical data for an entire suite of tests.
  *
@@ -57,6 +59,16 @@
     
     int getIterations() {
         return children.size()
+    }
+    
+    List getPackageNames() {
+        def list = []
+        
+        children.each { key, value ->
+            list.addAll(value.packageNames)
+        }
+        
+        return list.sort(Sorting.CASE_INSENSITIVE)
     }
 }
 



Mime
View raw message