Example #1
0
 private static boolean assertBufferEquals(WindowBuffer window, String... elements) {
   for (int i = 0; i < window.getSize(); i++) {
     ParameterValue pval = window.getHistoricValue(-window.getSize() + 1 + i);
     assertEquals(
         "Incorrect element at position " + i,
         elements[i],
         (pval != null) ? pval.getEngValue().getStringValue() : null);
   }
   return true;
 }