/*
 * The Gemma project
 * 
 * Copyright (c) 2006 University of British Columbia
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */
package ubic.gemma.loader.genome.taxon;

import java.util.Collection;

import ubic.gemma.model.common.description.LocalFile;
import junit.framework.TestCase;

/**
 * @author pavlidis
 * @version $Id$
 */
public class TaxonFetcherTest extends TestCase {

    // FIXME - this test takes too long.
    public void testFetch() throws Exception {
        TaxonFetcher fetcher = new TaxonFetcher();
        fetcher.setDeleteAfterUnpack( false );
        Collection<LocalFile> files = fetcher.fetch();
        assertEquals( 9, files.size() );
        for ( LocalFile file : files ) {
            if ( file.getLocalURL().toString().endsWith( "names.dmp" ) ) {
                return;
            }
        }
        fail( "No names.dmp file" );

    }

}

@@ -913,19 +913,43 @@
 XME 
-- this test
+: design a better test; the old one
  tak
@@ -1015,16 +1015,19 @@
 %0A       
+ //
  TaxonFe
@@ -1069,16 +1069,19 @@
 %0A       
+ //
  fetcher
@@ -1119,16 +1119,19 @@
 %0A       
+ //
  Collect
@@ -1177,16 +1177,19 @@
 %0A       
+ //
  assertE
@@ -1221,16 +1221,19 @@
 %0A       
+ //
  for ( L
@@ -1266,19 +1266,18 @@
         
-   
+//
  if ( fi
@@ -1340,23 +1340,18 @@
         
-  
-     
+//
  return;
@@ -1355,27 +1355,26 @@
 rn;%0A        
-  
- 
+//
  %7D%0A        %7D
@@ -1371,16 +1371,19 @@
 %0A       
+ //
  %7D%0A     
@@ -1384,16 +1384,19 @@
 %0A       
+ //
  fail( %22

comment out very slow test