Functional data import from Yahoo Finance news using YQL (Yahoo Query Language) and XPATH. Data is stuffed into MySQL database cs6601 on woodyfolsom.net.
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
package net.woodyfolsom.cs6601.p3.dao;
|
||||
|
||||
import static org.junit.Assert.assertNotNull;
|
||||
|
||||
import net.woodyfolsom.cs6601.p3.svc.HeadlineService;
|
||||
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
|
||||
import org.springframework.context.ApplicationContext;
|
||||
import org.springframework.context.support.ClassPathXmlApplicationContext;
|
||||
|
||||
public class MySQLHeadlineDaoImplTest {
|
||||
private static HeadlineService headlineSvc;
|
||||
|
||||
@BeforeClass
|
||||
public static void setUp() {
|
||||
ApplicationContext context=new ClassPathXmlApplicationContext(new String[]{"/AppContext.xml"});
|
||||
headlineSvc = (HeadlineService) context
|
||||
.getBean("mySQLHeadlineSvc");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSelect() {
|
||||
assertNotNull(headlineSvc);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user