diff options
| author | clarkohw <66530369+clarkohw@users.noreply.github.com> | 2021-04-04 23:13:00 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-04 23:13:00 -0400 |
| commit | b8023de2b8d942e995b7a6419a7da814afe8a4a3 (patch) | |
| tree | 5df6a11038ca35598d3c1aaecc921893952ac210 /src/test/java/edu/brown/cs/student/LinkMapperTest.java | |
| parent | 32f6f0e6f9d9beb8476f00417f68276fa2247d4e (diff) | |
| parent | cb79a2b3c94ef0fbfc7c1f9208b6f3027d08b4f9 (diff) | |
Merge branch 'master' into profic-calc
Diffstat (limited to 'src/test/java/edu/brown/cs/student/LinkMapperTest.java')
| -rw-r--r-- | src/test/java/edu/brown/cs/student/LinkMapperTest.java | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/src/test/java/edu/brown/cs/student/LinkMapperTest.java b/src/test/java/edu/brown/cs/student/LinkMapperTest.java new file mode 100644 index 0000000..9b46d5e --- /dev/null +++ b/src/test/java/edu/brown/cs/student/LinkMapperTest.java @@ -0,0 +1,48 @@ +package edu.brown.cs.student; + +import edu.brown.cs.student.term.DatabaseQuerier; +import edu.brown.cs.student.term.hub.LinkMapper; +import org.junit.After; +import org.junit.Before; +import org.junit.Test; + +import java.time.Instant; + +public class LinkMapperTest { + + /** these should span the entire mock dataset */ + //12 am on 3/11 in UTC + private Instant start = Instant.parse("2021-03-11T05:00:00.00Z"); + //12 am on 3/28 in UTC + private Instant end = Instant.parse("2021-03-28T05:00:00.00Z"); + + private DatabaseQuerier db; + + @Before + public void setUp() { + try{ + db = new DatabaseQuerier("data/mock_trades.sqlite3"); + } catch(Exception e){ + System.out.println("DBQuerier Test, couldn't connect to db???"); + } + } + + /* + * try{ + + } catch(Exception e) { + System.out.println("Error in test"); + }*/ + + @After + public void tearDown() { + db = null; + } + + @Test + public void testMapper(){ + setUp(); + LinkMapper lm = new LinkMapper(db); + lm.makeFollowerLinks(start, end); + } +} |
