/**
* Some checks for the equals() method.
*/
public void testEquals() {
TaskSeries s1 = new TaskSeries("Series");
s1.add(new Task("Task 1", new Date(0L), new Date(1L)));
s1.add(new Task("Task 2", new Date(10L), new Date(11L)));
s1.add(new Task("Task 3", new Date(20L), new Date(21L)));
TaskSeriesCollection u1 = new TaskSeriesCollection();
u1.add(s1);
XYTaskDataset d1 = new XYTaskDataset(u1);
TaskSeries s2 = new TaskSeries("Series");
s2.add(new Task("Task 1", new Date(0L), new Date(1L)));
s2.add(new Task("Task 2", new Date(10L), new Date(11L)));
s2.add(new Task("Task 3", new Date(20L), new Date(21L)));
TaskSeriesCollection u2 = new TaskSeriesCollection();
u2.add(s2);
XYTaskDataset d2 = new XYTaskDataset(u2);
assertTrue(d1.equals(d2));
d1.setSeriesWidth(0.123);
assertFalse(d1.equals(d2));
d2.setSeriesWidth(0.123);
assertTrue(d1.equals(d2));
d1.setTransposed(true);
assertFalse(d1.equals(d2));
d2.setTransposed(true);
assertTrue(d1.equals(d2));
s1.add(new Task("Task 2", new Date(10L), new Date(11L)));
assertFalse(d1.equals(d2));
s2.add(new Task("Task 2", new Date(10L), new Date(11L)));
assertTrue(d1.equals(d2));
}