package com.mindflakes.TeamRED.tests;
import org.joda.time.DateTime;
import com.mindflakes.TeamRED.UCSBScrape.LocalUCSBMenuFile;
import com.mindflakes.TeamRED.UCSBScrape.RemoteUCSBMenuFile;
import com.mindflakes.TeamRED.UCSBScrape.UCSBJMenuScraper;
import com.mindflakes.TeamRED.UCSBScrape.UCSBMenuFile;
import com.mindflakes.TeamRED.server.MealMenuSearchQuery;
import com.mindflakes.TeamRED.utils.MealMenuUtil;
public class TestJScrape {
public static void main(String[] args){
// UCSBMenuFile file = new RemoteUCSBMenuFile("https://docs.google.com/viewer?url=http://www.housing.ucsb.edu/dining/menu/ortega/ThisWeekMenu.pdf&a=gt");
// UCSBMenuFile file2 = new LocalUCSBMenuFile("docs/viewer.xml");
// UCSBJMenuScraper scrape = new UCSBJMenuScraper("http://localhost/carrillo.xml",0);
// UCSBJMenuScraper carrillo = new UCSBJMenuScraper("docs/Menus/carrillo4.19.xml", 1);
// carrillo.printAll();
// UCSBJMenuScraper portola = new UCSBJMenuScraper("docs/Menus/portola4.19.xml", 1);
// portola.printAll();
// UCSBJMenuScraper dlg = new UCSBJMenuScraper("docs/Menus/dlg4.19.xml", 1);
// dlg.printAll();
// UCSBJMenuScraper ortega = new UCSBJMenuScraper("docs/Menus/ortega4.19.xml", 1);
//UCSBJMenuScraper ortega = new UCSBJMenuScraper(RemoteUCSBMenuFile.CARRILLO_NEXT_WEEK, false);
UCSBJMenuScraper ortega = new UCSBJMenuScraper(RemoteUCSBMenuFile.CARRILLO_THIS_WEEK, false);
// MealMenuSearchQuery search = new MealMenuSearchQuery(ortega.getMenus());
MealMenuUtil.printAll(ortega.getMenus());
ortega = new UCSBJMenuScraper(RemoteUCSBMenuFile.CARRILLO_NEXT_WEEK, false);
MealMenuUtil.printAll(ortega.getMenus());
// System.out.println("<---------SEARCH RESULTS--------->");
// MealMenuUtil.printAll(search.findFoodItem("\"Focaccia Sandwich\" Blackened\"").returnResults());
// System.out.println(new DateTime().getMillis());
// System.out.println(new DateTime().plusWeeks(1).getMillis());
}
}