package org.arachb.api;

import junit.framework.TestCase;

public class TestTaxon extends TestCase {
	
	final static String TAXONNCBIID = "http://purl.obolibrary.org/obo/NCBITaxon_336608";

	protected void setUp() throws Exception {
		super.setUp();
	}

	public void testGetName2EthogramQuery() {
		Taxon testTaxon = new Taxon();
		String testQuery = testTaxon.getName2EthogramQuery("Habronattus");
		//System.out.println(testQuery);
		assert(testQuery.contains("Habronattus"));
	}
	
	public void testGetName2TaxonIdQuery(){
		Taxon testTaxon = new Taxon();
		String testQuery = testTaxon.getName2TaxonIdQuery("Habronattus");
		assert(testQuery.contains("Habronattus"));
	}

}

@@ -18,16 +18,65 @@
 b.api;%0A%0A
+import org.junit.Before;%0Aimport org.junit.Test;%0A%0A
 import j
@@ -100,16 +100,16 @@
 stCase;%0A
-
 %0Apublic 
@@ -232,16 +232,25 @@
 6608%22;%0A%0A
+%09@Before%0A
 %09protect
@@ -305,16 +305,23 @@
 ();%0A%09%7D%0A%0A
+%09@Test%0A
 %09public 
@@ -459,18 +459,16 @@
 us%22);%0A%09%09
-//
 System.o
@@ -538,18 +538,25 @@
 %22));%0A%09%7D%0A
-
 %09%0A
+%09@Test%0A
 %09public 

add @Before and @Test annotations to methods as appropriate