@@ -0,0 +1,1371 @@
+package org.flymine.web.results;%0A%0A/*%0A * Copyright (C) 2002-2003 FlyMine%0A *%0A * This code may be freely distributed and modified under the%0A * terms of the GNU Lesser General Public Licence.  This should%0A * be distributed with the code.  See the LICENSE file for more%0A * information or http://www.gnu.org/copyleft/lesser.html.%0A *%0A */%0A%0Aimport junit.framework.TestCase;%0A%0Apublic class ColumnTest extends TestCase%0A%7B%0A    public ColumnTest(String arg) %7B%0A        super(arg);%0A    %7D%0A%0A    private Column col1, col2, col3, col4;%0A%0A    public void setUp() %7B%0A        col1 = new Column();%0A        col1.setAlias(%22c1%22);%0A        col1.setIndex(1);%0A        col2 = new Column();%0A        col2.setAlias(%22c1%22);%0A        col2.setIndex(1);%0A        col3 = new Column();%0A        col3.setAlias(%22c1%22);%0A        col3.setIndex(2);%0A        col4 = new Column();%0A        col4.setAlias(%22c2%22);%0A        col4.setIndex(2);%0A    %7D%0A%0A    public void testEquals() %7B%0A        assertEquals(col1, col1);%0A        assertEquals(col1, col2);%0A        assertEquals(col1, col3);%0A        assertFalse(col1.equals(col4));%0A        assertFalse(col3.equals(col4));%0A    %7D%0A%0A    public void testHashCode() %7B%0A        assertEquals(col1.hashCode(), col2.hashCode());%0A        assertEquals(col1.hashCode(), col3.hashCode());%0A        assertTrue(col1.hashCode() != col4.hashCode());%0A        assertTrue(col3.hashCode() != col4.hashCode());%0A    %7D%0A%0A%7D%0A

Test for Column class