@@ -0,0 +1,1345 @@
+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%0Aimport org.flymine.objectstore.dummy.ObjectStoreDummyImpl;%0Aimport org.flymine.objectstore.query.fql.FqlQuery;%0Aimport org.flymine.objectstore.query.Results;%0A%0Apublic class DisplayableResultsTest extends TestCase%0A%7B%0A    public DisplayableResultsTest(String arg) %7B%0A        super(arg);%0A    %7D%0A%0A    private Results results;%0A%0A    public void setUp() throws Exception %7B%0A        ObjectStoreDummyImpl os = new ObjectStoreDummyImpl();%0A        os.setResultsSize(15);%0A        results = os.execute(new FqlQuery(%22select c, d from Company as c, Department as d%22, %22org.flymine.model.testmodel%22).toQuery());%0A    %7D%0A%0A    public void testConstructor() %7B%0A        DisplayableResults dr = new DisplayableResults(results);%0A        assertEquals(2, dr.getColumns().size());%0A    %7D%0A%0A%0A    public void testEnd() %7B%0A        DisplayableResults dr = new DisplayableResults(results);%0A        dr.setEnd(10);%0A        assertEquals(10, dr.getEnd());%0A        dr.setEnd(20);%0A        assertEquals(14, dr.getEnd());%0A    %7D%0A%0A%7D%0A

Test class for DisplayableResults