@Test public void schemaEquality_diffOnDelete_notEqual() { ForeignKeyBundle bundle = new ForeignKeyBundle("table", "onDelete2", "onUpdate", Arrays.asList("col1", "col2"), Arrays.asList("target1", "target2")); ForeignKeyBundle other = new ForeignKeyBundle("table", "onDelete", "onUpdate", Arrays.asList("col1", "col2"), Arrays.asList("target1", "target2")); assertThat(bundle.isSchemaEqual(other), is(false)); }
@Override public boolean isSchemaEqual(ForeignKeyBundle other) { if (mTable != null ? !mTable.equals(other.mTable) : other.mTable != null) return false; if (mOnDelete != null ? !mOnDelete.equals(other.mOnDelete) : other.mOnDelete != null) { return false; } if (mOnUpdate != null ? !mOnUpdate.equals(other.mOnUpdate) : other.mOnUpdate != null) { return false; } return mColumns.equals(other.mColumns) && mReferencedColumns.equals( other.mReferencedColumns); }
ForeignKeyBundle implements SchemaEquality<ForeignKeyBundle> { @Override public boolean isSchemaEqual(ForeignKeyBundle other) { if (mTable != null ? !mTable.equals(other.mTable) : other.mTable != null) return false; if (mOnDelete != null ? !mOnDelete.equals(other.mOnDelete) : other.mOnDelete != null) { return false; } if (mOnUpdate != null ? !mOnUpdate.equals(other.mOnUpdate) : other.mOnUpdate != null) { return false; } return mColumns.equals(other.mColumns) && mReferencedColumns.equals( other.mReferencedColumns); } }
ForeignKeyBundle implements SchemaEquality<ForeignKeyBundle> { @Override public boolean isSchemaEqual(ForeignKeyBundle other) { if (mTable != null ? !mTable.equals(other.mTable) : other.mTable != null) return false; if (mOnDelete != null ? !mOnDelete.equals(other.mOnDelete) : other.mOnDelete != null) { return false; } if (mOnUpdate != null ? !mOnUpdate.equals(other.mOnUpdate) : other.mOnUpdate != null) { return false; } return mColumns.equals(other.mColumns) && mReferencedColumns.equals( other.mReferencedColumns); } ForeignKeyBundle(String table, String onDelete, String onUpdate,
            List<String> columns, List<String> referencedColumns); }
ForeignKeyBundle implements SchemaEquality<ForeignKeyBundle> { @Override public boolean isSchemaEqual(ForeignKeyBundle other) { if (mTable != null ? !mTable.equals(other.mTable) : other.mTable != null) return false; if (mOnDelete != null ? !mOnDelete.equals(other.mOnDelete) : other.mOnDelete != null) { return false; } if (mOnUpdate != null ? !mOnUpdate.equals(other.mOnUpdate) : other.mOnUpdate != null) { return false; } return mColumns.equals(other.mColumns) && mReferencedColumns.equals( other.mReferencedColumns); } ForeignKeyBundle(String table, String onDelete, String onUpdate,
            List<String> columns, List<String> referencedColumns); String getTable(); String getOnDelete(); String getOnUpdate(); List<String> getColumns(); List<String> getReferencedColumns(); @Override boolean isSchemaEqual(ForeignKeyBundle other); }
ForeignKeyBundle implements SchemaEquality<ForeignKeyBundle> { @Override public boolean isSchemaEqual(ForeignKeyBundle other) { if (mTable != null ? !mTable.equals(other.mTable) : other.mTable != null) return false; if (mOnDelete != null ? !mOnDelete.equals(other.mOnDelete) : other.mOnDelete != null) { return false; } if (mOnUpdate != null ? !mOnUpdate.equals(other.mOnUpdate) : other.mOnUpdate != null) { return false; } return mColumns.equals(other.mColumns) && mReferencedColumns.equals( other.mReferencedColumns); } ForeignKeyBundle(String table, String onDelete, String onUpdate,
            List<String> columns, List<String> referencedColumns); String getTable(); String getOnDelete(); String getOnUpdate(); List<String> getColumns(); List<String> getReferencedColumns(); @Override boolean isSchemaEqual(ForeignKeyBundle other);  }