@@ -0,0 +1,1594 @@
+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 java.util.HashMap;%0Aimport java.util.Map;%0A%0Aimport servletunit.struts.MockStrutsTestCase;%0Aimport org.apache.struts.tiles.ComponentContext;%0A%0Aimport org.flymine.objectstore.ObjectStore;%0Aimport org.flymine.objectstore.ObjectStoreFactory;%0Aimport org.flymine.objectstore.query.Query;%0Aimport org.flymine.objectstore.query.Results;%0A%0Aimport org.flymine.model.testmodel.Company;%0A%0Apublic class ResultsCellControllerTest extends MockStrutsTestCase%0A%7B%0A    public ResultsCellControllerTest(String arg1) %7B%0A        super(arg1);%0A    %7D%0A%0A    public void testBusinessObject() throws Exception %7B%0A        ComponentContext context = new ComponentContext();%0A        ComponentContext.setContext(context, getRequest());%0A        setRequestPathInfo(%22/initResultsCell%22);%0A%0A        getRequest().setAttribute(%22object%22, new Company());%0A        actionPerform();%0A        assertNotNull(context.getAttribute(%22cld%22));%0A    %7D%0A%0A    public void testNonBusinessObject() throws Exception %7B%0A        ComponentContext context = new ComponentContext();%0A        ComponentContext.setContext(context, getRequest());%0A        setRequestPathInfo(%22/initResultsCell%22);%0A%0A        getRequest().setAttribute(%22object%22, %22test string%22);%0A        actionPerform();%0A        assertNull(context.getAttribute(%22cld%22));%0A    %7D%0A%0A%7D%0A

Test class for ResultsCellController