package com.isscassistant;

import java.net.MalformedURLException;
import java.net.URL;
import java.util.Set;

import org.junit.Test;

import de.jollyday.Holiday;
import de.jollyday.HolidayCalendar;
import de.jollyday.HolidayManager;
import de.jollyday.ManagerParameters;

public class HolidayCalculatorTest {

	@Test
	public void testCalculate() throws MalformedURLException {
//		// HolidayManager manager =
//		// HolidayManager.getInstance(HolidayCalendar.UNITED_KINGDOM);
//
//		// URL url = new
//		// URL("http://publicholiday.azurewebsites.net/api/v1/get/GB/2017");
//		// HolidayManager m =
//		// HolidayManager.getInstance(HolidayCalendar.UNITED_KINGDOM);
//
//		// HolidayManager manager = HolidayManager
//		// .getInstance(ManagerParameters.create(HolidayCalendar.UNITED_KINGDOM));
//
//		//URL url = new URL("http://publicholiday.azurewebsites.net/api/v1/get/GB/2017");
//		URL url = new URL("http://publicholiday.azurewebsites.net/api/v1/get/GB/2017");
//		System.out.println(ManagerParameters.create("file:holidaysgb.xml"));
//		
//		HolidayManager manager = HolidayManager.getInstance(ManagerParameters.create("file:holidaysgb.xml"));
//
//		Set<Holiday> holidays = manager.getHolidays(2017);
//		System.out.println(holidays.size());
//		http: // publicholiday.azurewebsites.net/api/v1/get/GB/2017
//
//		for (Holiday holiday : holidays) {
//			System.out.println(holiday);
//		}
	}

}

@@ -64,211 +64,30 @@
 on;%0A
-import java.net.URL;%0Aimport java.util.Set;%0A%0Aimport org.junit.Test;%0A%0Aimport de.jollyday.Holiday;%0Aimport de.jollyday.HolidayCalendar;%0Aimport de.jollyday.HolidayManager;%0Aimport de.jollyday.ManagerParameters
+%0Aimport org.junit.Test
 ;%0A%0Ap
@@ -190,16 +190,18 @@
 ption %7B%0A
+%09%09
 //%09%09// H
@@ -224,16 +224,18 @@
 nager =%0A
+%09%09
 //%09%09// H
@@ -289,27 +289,31 @@
 D_KINGDOM);%0A
+%09%09
 //%0A
+%09%09
 //%09%09// URL u
@@ -321,16 +321,18 @@
 l = new%0A
+%09%09
 //%09%09// U
@@ -392,24 +392,26 @@
 /GB/2017%22);%0A
+%09%09
 //%09%09// Holid
@@ -424,16 +424,18 @@
 ger m =%0A
+%09%09
 //%09%09// H
@@ -493,19 +493,23 @@
 NGDOM);%0A
+%09%09
 //%0A
+%09%09
 //%09%09// H
@@ -547,16 +547,18 @@
 Manager%0A
+%09%09
 //%09%09// .
@@ -624,27 +624,31 @@
 _KINGDOM));%0A
+%09%09
 //%0A
+%09%09
 //%09%09//URL ur
@@ -717,24 +717,26 @@
 /GB/2017%22);%0A
+%09%09
 //%09%09URL url 
@@ -807,16 +807,18 @@
 2017%22);%0A
+%09%09
 //%09%09Syst
@@ -886,13 +886,15 @@
 ));%0A
+%09%09
 //
+%0A
 %09%09
-%0A
 //%09%09
@@ -995,19 +995,23 @@
 xml%22));%0A
+%09%09
 //%0A
+%09%09
 //%09%09Set%3C
@@ -1057,16 +1057,18 @@
 (2017);%0A
+%09%09
 //%09%09Syst
@@ -1100,16 +1100,18 @@
 ize());%0A
+%09%09
 //%09%09http
@@ -1166,19 +1166,23 @@
 GB/2017%0A
+%09%09
 //%0A
+%09%09
 //%09%09for 
@@ -1212,16 +1212,18 @@
 days) %7B%0A
+%09%09
 //%09%09%09Sys
@@ -1248,16 +1248,18 @@
 liday);%0A
+%09%09
 //%09%09%7D%0A%09%7D

Remove "jollyday" imports from tests