Re: java.net.MalformedURLException creating new Content in unit test

2012-01-23 Thread José Ignacio Ortiz de Galisteo
Hi all. Well, I have just found was the problem was, in case somebody has the same problem: In our case the configuration mime.types.file was tika.mimetype.xml (this is the default type). To solve it just include the tika-mimetype.xml file in the classpath of the project. Instead of this we create

java.net.MalformedURLException creating new Content in unit test

2012-01-19 Thread José Ignacio Ortiz de Galisteo
Hi. I'm trying to make a unit test of a custom parse plugin. When I load a fixture I have to create a new Content object in order to mock the behaviour of Nutch. Doing this new Content(url, url, bytes, text/html, new Metadata(), NutchConfiguration.create()); the following exception is thrown: