Code example for MySQL5InnoDBDialect

0
    @Before 
    public void setUp() throws Exception
    { 
        refTable = new Table("reference_table"); 
        refIndex = new Index(refTable, "index_name", Arrays.asList("a", "b", "c"));
        ctx = new DiffContext(new MySQL5InnoDBDialect(), refSchema, targetSchema);
        visitor = new ValidatingVisitor(ctx);
         
        validators = new ArrayList<DbValidator>();
        validators.add(Mockito.mock(DbValidator.class));
        validators.add(Mockito.mock(DbValidator.class));
        refIndex.setValidators(validators);
 
        targetTable = new Table("target_table"); 
        targetIndex1 = new Index(targetTable, "index_name", Arrays.asList("a", "b", "c"));
        targetIndex2 = new Index(targetTable, "another_index", Arrays.asList("a", "b", "c"));
        targetIndex3 = new Index(targetTable, "index_name", Arrays.asList("e", "f"));
         
        comparisonUtils = Mockito.mock(ComparisonUtils.class);
        visitor.setComparisonUtils(comparisonUtils);
Connect your IDE to all the code out there  Get Codota for Java