@@ -0,0 +1,978 @@
+package it.uniroma3.dia.alfredmpi.xpath;%0D%0A%0D%0Aimport static org.junit.Assert.*;%0D%0A%0D%0Aimport model.Page;%0D%0Aimport org.junit.Before;%0D%0Aimport org.junit.Test;%0D%0A%0D%0Apublic class XPathHandlerTest %7B%0D%0A%09%0D%0A%09private XPathHandler xpathhandler;%0D%0A%0D%0A%09@Before%0D%0A%09public void setUp() throws Exception %7B%09%0D%0A%09%09xpathhandler = XPathHandler.getInstance();%0D%0A%09%7D%0D%0A%0D%0A%09@Test%0D%0A%09public void test_create_page_from_string() %7B%0D%0A%09%09String content = %22%3Croot%3E%3Ca%3E#BBB#%3C/a%3E%3Ca%3E#CCC#%3C/a%3E%3Cb%3E%3Ca%3E#DDD#%3C/a%3E%3C/b%3E%3C/root%3E%22;%0D%0A%09%09Page page = this.xpathhandler.createPage(content);%09%09%0D%0A%09%09assertEquals(content, page.getContent());%0D%0A%09%09page.setTitle(%22Titolo di prova%22);%0D%0A%09%09assertEquals(%22Titolo di prova%22, page.getTitle());%0D%0A%09%7D%0D%0A%09%0D%0A%09@Test%0D%0A%09public void test_apply_xpath_to_page() %7B%0D%0A%09%09String content = %22%3Croot%3E%3Ca%3E#BBB#%3C/a%3E%3Ca%3E#CCC#%3C/a%3E%3Cb%3E%3Ca%3E#DDD#%3C/a%3E%3C/b%3E%3C/root%3E%22;%09%09%0D%0A%09%09Page page = this.xpathhandler.createPage(content);%09%0D%0A%09%09page.setTitle(%22Titolo di prova%22);%0D%0A%09%09XPathHandler.getInstance().print_executeQuery(page, %22//a%22);%0D%0A%09%09//TOCOMPLETE%0D%0A%09%7D%0D%0A%0D%0A%7D%0D%0A

Refactor of test class.. no need for underscore in name