Esempio n. 1
0
 private static void validateTableOfLongs(String messagePrefix, VoltTable vt, long[][] expected) {
   assertNotNull(expected);
   if (expected.length != vt.getRowCount()) {
     if (vt.getRowCount() < m_verboseDiagnosticRowCap) {
       System.out.println(
           "Diagnostic dump of unexpected result for " + messagePrefix + " : " + vt);
       System.out.println("VS. expected : ");
       dumpExpectedLongs(expected);
     }
     // * enable and set breakpoint to debug multiple row count mismatches and continue */ return;
   }
   assertEquals(
       messagePrefix + " returned wrong number of rows.  ", expected.length, vt.getRowCount());
   int len = expected.length;
   for (int i = 0; i < len; i++) {
     validateRowOfLongs(messagePrefix + " at row " + i + ", ", vt, expected[i]);
   }
 }