expr.setType(null);
assertNull(expr.getType());
}
public void testEquals() {
SearchedCaseExpression sc1 = example(3);
assertTrue(sc1.equals(sc1));
assertTrue(sc1.equals(sc1.clone()));
assertTrue(sc1.clone().equals(sc1));
assertTrue(sc1.equals(example(3)));
SearchedCaseExpression sc2 = example(4);
assertFalse(sc1.equals(sc2));
assertFalse(sc2.equals(sc1));
SearchedCaseExpression sc3 = example(3);
sc3.setElseExpression(new ElementSymbol("y")); //$NON-NLS-1$
assertFalse(sc1.equals(sc3));
assertFalse(sc3.equals(sc1));
}