db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From krist...@apache.org
Subject svn commit: r1031559 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/IndexStatsUtil.java
Date Fri, 05 Nov 2010 13:36:14 GMT
Author: kristwaa
Date: Fri Nov  5 13:36:14 2010
New Revision: 1031559

URL: http://svn.apache.org/viewvc?rev=1031559&view=rev
Log:
DERBY-4834: Add helper class for working with index statistics in JUnit tests

Added helper method assertNoStatsTable.

Patch file: derby-4834-2b-assertNoStatsTable.diff

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

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/IndexStatsUtil.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/IndexStatsUtil.java?rev=1031559&r1=1031558&r2=1031559&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/IndexStatsUtil.java (original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/IndexStatsUtil.java Fri
Nov  5 13:36:14 2010
@@ -68,6 +68,16 @@ public class IndexStatsUtil {
     }
 
     /**
+     * Asserts that there are no existing statistics for the specified table.
+     *
+     * @throws SQLException if obtaining the statistics fails
+     */
+    public void assertNoStatsTable(String table)
+            throws SQLException {
+        assertTableStats(table, 0);
+    }
+
+    /**
      * Asserts that the expected number of statistics exists.
      *
      * @param expectedCount expected number of statistics



Mime
View raw message