deliverable_10
asdfasdf 6 years ago
parent ba13fcad28
commit 58c5cbe870

@ -5,35 +5,30 @@ import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assertions.assertTrue;
import network.AlphaVantage;
public class DataSourceTest { public class DataSourceTest {
// private StockType testStype; private StockType testStype;
// private DataSource testSource; private DataSource testSource;
//
// @BeforeEach @BeforeEach
// public void runBefore() { public void runBefore() {
// testStype = StypeMap.getStype("NYSE"); testStype = StypeMap.getStype("NYSE");
// testSource = new DataSource("Test Source", "asdf://asdfasdf", testSource = new AlphaVantage();
// "asdfasdfasdf", "asdfasdf"); }
// }
// @Test
// @Test public void testAddDel() {
// public void testAddDel() { testStype.addSource(testSource);
// testStype.addSource(testSource); testSource.delStype(testStype);
// testSource.delStype(testStype); }
// }
// @Test
// @Test public void testEqualsHash() {
// public void testEqualsHash() { DataSource testSource2 = new AlphaVantage();
// DataSource testSource2 = new DataSource("Test Source", "asdf://asdfasdf", String asdf = "asdf";
// "asdfasdfasdf", "asdfasdf"); assertEquals(testSource, testSource2);
// DataSource testSource3 = new DataSource("Test asdf", "asdf://asdfasdf", assertFalse(testSource.equals(asdf));
// "asdfasdfasdf", "asdfasdf"); assertEquals(testSource.hashCode(), testSource2.hashCode());
// String asdf = "asdf"; }
// assertEquals(testSource, testSource2);
// assertFalse(testSource.equals(testSource3));
// assertFalse(testSource.equals(asdf));
// assertEquals(testSource.hashCode(), testSource2.hashCode());
// assertFalse(testSource.hashCode() == testSource3.hashCode());
// }
} }

Loading…
Cancel
Save