import data.StypeMap; import data.StockType; import data.Nasdaq; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; public class NasdaqTest { private StypeMap smap; private StockType naasdaq; @BeforeEach public void runBefore() { smap = new StypeMap(); naasdaq = smap.getStype("Nasdaq"); } @Test public void testName() { assertTrue(naasdaq.getName().equals("NASDAQ")); } }