package de.philipp1994.lunch.pizzahaus;

import java.net.URI;
import java.net.URISyntaxException;
import java.time.LocalDate;

import de.philipp1994.lunch.common.ILunchMenuProvider;
import de.philipp1994.lunch.common.LunchMenu;
import de.philipp1994.lunch.common.LunchMenuItem;
import de.philipp1994.lunch.common.LunchProviderException;

public class PizzaHausLunchMenuProvider implements ILunchMenuProvider {

	private static final URI URL;

	static {
		URI t = null;
		try {
			t = new URI("http://www.casinocatering.de/speiseplan/max-rubner-institut");
		} catch (URISyntaxException e) {
			e.printStackTrace();
		} finally {
			URL = t;
		}
	}

	@Override
	public LunchMenu getMenu(final LocalDate date) throws LunchProviderException {
		
		LunchMenu menu = new LunchMenu("Pizzahaus");
		
		switch(date.getDayOfWeek()) {
		case MONDAY:
			menu.addLunchItem(new LunchMenuItem("Pasta con Rocola, insalata verde", 5.50));
			menu.addLunchItem(new LunchMenuItem("Scaloppina al Vino Bianco, Pommes, insalata verde", 8.00));
			break;

		case TUESDAY:
			menu.addLunchItem(new LunchMenuItem("Agnolotti Ricotta e Spinaci, insalata verde", 5.50));
			menu.addLunchItem(new LunchMenuItem("Scaloppina con Mozzarella, Pommes, insalata verde", 8.00));
			break;

		case WEDNESDAY:
			menu.addLunchItem(new LunchMenuItem("Pasta al Forno, insalata verde", 5.50));
			menu.addLunchItem(new LunchMenuItem("Scaloppina al Formaggio, Pommes, insalata verde", 8.00));
			break;

		case THURSDAY:
			menu.addLunchItem(new LunchMenuItem("Pasta con Polpette, insalata verde", 5.50));
			menu.addLunchItem(new LunchMenuItem("Maiale alla Griglia, Pommes, insalata verde", 8.00));
			break;

		case FRIDAY:
			menu.addLunchItem(new LunchMenuItem("Pasta al Salmone, insalata verde", 5.50));
			menu.addLunchItem(new LunchMenuItem("Kabeljaufilet, Pommes, insalata verde", 8.00));
			break;
			
		default:
			throw LunchProviderException.NO_LUNCH_TODAY;
		}
		
		return menu;
	}

}

@@ -38,65 +38,8 @@
 s;%0A%0A
-import java.net.URI;%0Aimport java.net.URISyntaxException;%0A
 impo
@@ -351,246 +351,8 @@
  %7B%0A%0A
-%09private static final URI URL;%0A%0A%09static %7B%0A%09%09URI t = null;%0A%09%09try %7B%0A%09%09%09t = new URI(%22http://www.casinocatering.de/speiseplan/max-rubner-institut%22);%0A%09%09%7D catch (URISyntaxException e) %7B%0A%09%09%09e.printStackTrace();%0A%09%09%7D finally %7B%0A%09%09%09URL = t;%0A%09%09%7D%0A%09%7D%0A%0A
 %09@Ov

Remove some dead code