DeltaSnapshot { public List<DeltaSQLStatementSnapshot> getDeltaSqlStatementSnapshots() { return deltaSQLStatementSnapshots; } DeltaSnapshot();  DeltaSnapshot(Snapshot snapshotA,
                         Snapshot snapshotB,
                         boolean condenseInstances,
                         boolean condenseMissingBindVariables,
                         ProgressListener listener); List<DeltaSQLStatementSnapshot> getDeltaSqlStatementSnapshots(); Snapshot getSnapshotA(); Snapshot getSnapshotB();  }
@Test public void skipOneStatementInOneInstanceTest() { Calendar fiveMinutesAgo = new GregorianCalendar(); fiveMinutesAgo.add(Calendar.MINUTE, -5); Calendar now = new GregorianCalendar(); Snapshot snapshotA = new Snapshot(fiveMinutesAgo); Snapshot snapshotB = new Snapshot(now); SQLStatement sqlStatement = SQLHelper.getSQLStatement("sqlId2", "parsingUser", 0, "SELECT 'just testing' FROM dual"); snapshotA.addSQLStatementSnapshot(new SQLStatementSnapshot(sqlStatement, 0, new BigDecimal(1), new BigDecimal(2), new BigDecimal(3), new BigDecimal(4), new BigDecimal(5), new BigDecimal(6), new BigDecimal(7), new BigDecimal(8) )); snapshotB.addSQLStatementSnapshot(new SQLStatementSnapshot(sqlStatement, 0, new BigDecimal(1), new BigDecimal(4), new BigDecimal(6), new BigDecimal(8), new BigDecimal(10), new BigDecimal(12), new BigDecimal(14), new BigDecimal(16) )); DeltaSnapshot deltaSnapshot; deltaSnapshot = new DeltaSnapshot(snapshotA, snapshotB, false, false, null); Assert.assertEquals(0, deltaSnapshot.getDeltaSqlStatementSnapshots().size()); deltaSnapshot = new DeltaSnapshot(snapshotA, snapshotB, false, true, null); Assert.assertEquals(0, deltaSnapshot.getDeltaSqlStatementSnapshots().size()); deltaSnapshot = new DeltaSnapshot(snapshotA, snapshotB, true, false, null); Assert.assertEquals(0, deltaSnapshot.getDeltaSqlStatementSnapshots().size()); deltaSnapshot = new DeltaSnapshot(snapshotA, snapshotB, true, true, null); Assert.assertEquals(0, deltaSnapshot.getDeltaSqlStatementSnapshots().size()); }