geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r503367 - /geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/TestCase.groovy
Date Sun, 04 Feb 2007 06:55:46 GMT
Author: jdillon
Date: Sat Feb  3 22:55:46 2007
New Revision: 503367

URL: http://svn.apache.org/viewvc?view=rev&rev=503367
Log:
Add helper to get the package name for a testcase

Modified:
    geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/TestCase.groovy

Modified: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/TestCase.groovy
URL: http://svn.apache.org/viewvc/geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/TestCase.groovy?view=diff&rev=503367&r1=503366&r2=503367
==============================================================================
--- geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/TestCase.groovy
(original)
+++ geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/TestCase.groovy
Sat Feb  3 22:55:46 2007
@@ -50,6 +50,10 @@
         return result.testdescription['classname']
     }
     
+    String getPackageName() {
+        return className.substring(0, className.lastIndexOf('.'))
+    }
+    
     String getTestName() {
         return result.testdescription['testName']
     }



Mime
View raw message