Skip to content
Snippets Groups Projects
Commit e30da41c authored by Ar1sD's avatar Ar1sD
Browse files

Fixes

- Change @BeforeClass to @Before
- Update comments and docs
parent 8456e249
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@ package test;
import search.trawl.*;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.Test;
import model.TrawlExpert;
......@@ -10,26 +10,20 @@ import search.RedBlackTree;
import search.trawl.BasicSearchResult;
/**
* Testing was performed on a small dataset for which we know the correct numbers of data for each
* taxon. Takes a while to process the dataset since most of the species in the set are unique and
* thus require API calls.
* Test cases for Histogram.java
* @author TrawlStars, Inc.
*
*/
public class TestHistogram {
public static TrawlExpert te;
public static RedBlackTree<Integer, Integer> histo;
/**
* Loads the small dataset into memory using the FileProcessor.
* @throws Exception Cannot find dataset given.
*/
@BeforeClass
public static void setUp() throws Exception {
@Before
public void setUp() throws Exception {
// Assumes serialized data is present
te = new TrawlExpert();
}
@Test
public void testSum1() {
BasicSearchResult result = te.rangeSearch(154210, 1990, 2000); // Esox lucius
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment