db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From krist...@apache.org
Subject svn commit: r1185465 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/Utilities.java
Date Tue, 18 Oct 2011 04:18:38 GMT
Author: kristwaa
Date: Tue Oct 18 04:18:37 2011
New Revision: 1185465

URL: http://svn.apache.org/viewvc?rev=1185465&view=rev
Log:
DERBY-5300: Change derby.tests.trace to print the class as well as fixture name

Changed code to agree with Javadoc param comment ("mainString" -> "test").

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/Utilities.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/Utilities.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/Utilities.java?rev=1185465&r1=1185464&r2=1185465&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/Utilities.java (original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/Utilities.java Tue Oct
18 04:18:37 2011
@@ -238,15 +238,15 @@ public class Utilities {
      * @param test
      *            class name prefixed with package
      */
-    public static String formatTestClassNames(String mainString) {
+    public static String formatTestClassNames(String test) {
         final String COMMON_FUNCTIONTEST_PREFIX = "org.apache.derbyTesting.functionTests.tests.";
         final String COMMON_TEST_PREFIX = "org.apache.derbyTesting.";
-        if (mainString.startsWith(COMMON_FUNCTIONTEST_PREFIX)) {
-            return mainString.substring(COMMON_FUNCTIONTEST_PREFIX.length());
-        } else if (mainString.startsWith(COMMON_TEST_PREFIX)) {
-            return mainString.substring(COMMON_TEST_PREFIX.length());
+        if (test.startsWith(COMMON_FUNCTIONTEST_PREFIX)) {
+            return test.substring(COMMON_FUNCTIONTEST_PREFIX.length());
+        } else if (test.startsWith(COMMON_TEST_PREFIX)) {
+            return test.substring(COMMON_TEST_PREFIX.length());
         } else {
-            return mainString;
+            return test;
         }
     }
 }



Mime
View raw message