Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2XB3FinalProject
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Christopher Schankula
2XB3FinalProject
Commits
e30da41c
Commit
e30da41c
authored
6 years ago
by
Ar1sD
Browse files
Options
Downloads
Patches
Plain Diff
Fixes
- Change @BeforeClass to @Before - Update comments and docs
parent
8456e249
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/test/TestHistogram.java
+5
-11
5 additions, 11 deletions
src/test/TestHistogram.java
with
5 additions
and
11 deletions
src/test/TestHistogram.java
+
5
−
11
View file @
e30da41c
...
...
@@ -2,7 +2,7 @@ package test;
import
search.trawl.*
;
import
org.junit.Before
Class
;
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment