@@ -84,7 +84,7 @@ public void testCompareSchemaAndData() throws Exception
8484 assertEquals (schemaDifferences .size (), 27 );
8585
8686 ArrayList <Table > tablesReadyToBeDataAnalyzed = mySQLSchemaComparer .getMasterTablesReadyToBeDataAnalyzed ();
87- assertEquals (tablesReadyToBeDataAnalyzed .size (), 5 );
87+ assertEquals (tablesReadyToBeDataAnalyzed .size (), 6 );
8888 MySQLTableDataComparer tableDataComparer = new MySQLTableDataComparer (masterSchemaReader , slaveSchemaReader );
8989 for (Table table :tablesReadyToBeDataAnalyzed )
9090 tableDataComparer .compareTable (table );
@@ -100,11 +100,12 @@ public void testCompareSchemaAndData() throws Exception
100100 assertTrue (dataDifferences .indexOf (new SchemaDifference (Criticality .ERROR , "tab3" , DifferenceType .DATA_ROW_MISSING_IN_SLAVE_TABLE , "(uid,sometext2)=(4,d2)" )) >= 0 );
101101 assertTrue (dataDifferences .indexOf (new SchemaDifference (Criticality .ERROR , "tab3" , DifferenceType .DATA_ROW_EXCESS_IN_SLAVE_TABLE , "(uid,sometext2)=(4,d3)" )) >= 0 );
102102 assertTrue (dataDifferences .indexOf (new SchemaDifference (Criticality .ERROR , "tab3" , DifferenceType .DATA_ROW_EXCESS_IN_SLAVE_TABLE , "(uid,sometext2)=(6,e2)" )) >= 0 );
103-
104103 assertTrue (dataDifferences .indexOf (new SchemaDifference (Criticality .ERROR , "bigtable" , DifferenceType .DATA_ROW_EXCESS_IN_SLAVE_TABLE , "(uid)=(300000001)" )) >= 0 );
105104 assertTrue (dataDifferences .indexOf (new SchemaDifference (Criticality .ERROR , "bigtable" , DifferenceType .DATA_ROW_DIFFERENT_MD5 , "(uid)=(500000001)" )) >= 0 );
106105 assertTrue (dataDifferences .indexOf (new SchemaDifference (Criticality .ERROR , "bigtable" , DifferenceType .DATA_ROW_MISSING_IN_SLAVE_TABLE , "(uid)=(700000001)" )) >= 0 );
107- assertEquals (dataDifferences .size (), 14 );
106+ assertTrue (dataDifferences .indexOf (new SchemaDifference (Criticality .ERROR , "bigdiff" , DifferenceType .DATA_TOO_MANY_UNMATCHED_ROWS , "max rows:100" )) >= 0 );
107+
108+ assertEquals (dataDifferences .size (), 15 );
108109 assertTrue (tableDataComparer .getMasterTotalRetrievedRows () > 900000 );
109110 assertTrue (tableDataComparer .getSlaveTotalRetrievedRows () > 900000 );
110111 }
0 commit comments