@@ -0,0 +1,1891 @@
+package org.intermine.bio.dataconversion;%0A%0A/*%0A * Copyright (C) 2002-2009 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.io.IOException;%0Aimport java.sql.SQLException;%0Aimport java.util.Arrays;%0Aimport java.util.HashMap;%0Aimport java.util.List;%0A%0Aimport org.intermine.dataconversion.ItemWriter;%0Aimport org.intermine.dataconversion.ItemsTestCase;%0Aimport org.intermine.dataconversion.MockItemWriter;%0Aimport org.intermine.metadata.Model;%0Aimport org.intermine.sql.Database;%0Aimport org.intermine.xml.full.Item;%0A%0Apublic class SgdConverterTest extends ItemsTestCase%0A%7B%0A    public SgdConverterTest(String arg) %7B%0A        super(arg);%0A    %7D%0A%0A    /**%0A     * %7B@inheritDoc%7D%0A     */%0A    @Override%0A    public void setUp() throws Exception %7B%0A        super.setUp();%0A    %7D%0A%0A    public void testProcessTaxon() throws Exception %7B%0A        String orgId = %227227%22;%0A        doTestProcess(orgId);%0A    %7D%0A%0A    public void testProcessAbbreviation() throws Exception %7B%0A        String orgId = %22Dmel%22;%0A        doTestProcess(orgId);%0A    %7D%0A%0A    private void doTestProcess(String orgId) throws Exception, IOException %7B%0A        MockItemWriter itemWriter =%0A            new MockItemWriter(new HashMap%3CString, org.intermine.model.fulldata.Item%3E());%0A//        SgdConverter converter = new SgdConverter(null, Model.getInstanceByName(%22genomic%22),%0A//                                                  itemWriter);%0A//        converter.setDataSourceName(%22SGD%22);%0A//        converter.process();%0A//        itemWriter.close();%0A//        // writeItemsFile(itemWriter.getItems(), %22/tmp/chado-db-test-items-%22 + orgId + %22.xml%22);%0A        assertEquals(readItemSet(%22SgdConverterTest.xml%22), itemWriter.getItems());%0A    %7D%0A%0A%0A%7D%0A

add test