DatabaseConsistencyCheckHelper { public static DatabaseConsistencyCheckResult getLastCheckResult() { return checkResult; }  static DatabaseConsistencyCheckResult getLastCheckResult(); static void resetCheckResult(); static void setInjector(Injector injector); static void setConnection(Connection connection); static void closeConnection(); static DatabaseConsistencyCheckResult runAllDBChecks(boolean fixIssues); static void checkDBVersionCompatible();  }
@Test public void testCheckTopologyTablesAreConsistent() throws Exception { testCheckTopologyTablesConsistent(2); Assert.assertFalse(DatabaseConsistencyCheckHelper.getLastCheckResult().isError()); }
@Test public void testCheckTopologyTablesAreNotConsistent() throws Exception { testCheckTopologyTablesConsistent(1); Assert.assertTrue(DatabaseConsistencyCheckHelper.getLastCheckResult().isError()); }